mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 08:09:59 -04:00
Fix missing server socket detach in TLS accept error path
When TLS creation fails in tlslisten_acceptcb(), tlssock->server
was not detached before detaching tlssock itself.
(cherry picked from commit 2ab3d7c075)
This commit is contained in:
parent
f907b229d3
commit
769dff3e6f
1 changed files with 1 additions and 0 deletions
|
|
@ -935,6 +935,7 @@ tlslisten_acceptcb(isc_nmhandle_t *handle, isc_result_t result, void *cbarg) {
|
|||
if (tlssock->tlsstream.tls == NULL) {
|
||||
tlssock->closed = true;
|
||||
isc_tlsctx_free(&tlssock->tlsstream.ctx);
|
||||
isc__nmsocket_detach(&tlssock->server);
|
||||
isc__nmsocket_detach(&tlssock);
|
||||
return ISC_R_TLSERROR;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue