mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-04 13:59:35 -05:00
dnstap unbound-dnstap-sock, fixup check for ssl context create error.
This commit is contained in:
parent
473783e432
commit
b912169f15
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue