From: W.C.A. Wijngaards Date: Fri, 31 Jan 2020 10:11:43 +0000 (+0100) Subject: dnstap unbound-dnstap-sock, fixup check for ssl context create error. X-Git-Tag: 1.11.0rc1~120^2~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b912169f1524d04e2f6de3baf530f7d8e69d6716;p=thirdparty%2Funbound.git dnstap unbound-dnstap-sock, fixup check for ssl context create error. --- 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; }