From b912169f1524d04e2f6de3baf530f7d8e69d6716 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Fri, 31 Jan 2020 11:11:43 +0100 Subject: [PATCH] dnstap unbound-dnstap-sock, fixup check for ssl context create error. --- dnstap/unbound-dnstap-socket.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dnstap/unbound-dnstap-socket.c b/dnstap/unbound-dnstap-socket.c index 3c5bcbcda..cbb04a1c2 100644 --- a/dnstap/unbound-dnstap-socket.c +++ b/dnstap/unbound-dnstap-socket.c @@ -241,6 +241,12 @@ static struct tap_socket* tap_socket_new_tlsaccept(char* ip, s->ev_cb = ev_cb; s->data = data; s->sslctx = listen_sslctx_create(server_key, server_cert, verifypem); + if(!s->sslctx) { + log_err("could not create ssl context"); + free(s->ip); + free(s); + return NULL; + } return s; } -- 2.47.3