From: Ondřej Surý Date: Wed, 7 Aug 2024 14:17:50 +0000 (+0000) Subject: fix: dev: Attach/detach to the listening child socket when accepting TLS X-Git-Tag: v9.21.0~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ee00bddf94ffbb2ff0565e389de32de72753939e;p=thirdparty%2Fbind9.git fix: dev: Attach/detach to the listening child socket when accepting TLS When TLS connection (TLSstream) connection was accepted, the children listening socket was not attached to sock->server and thus it could have been freed before all the accepted connections were actually closed. In turn, this would cause us to call isc_tls_free() too soon - causing cascade errors in pending SSL_read_ex() in the accepted connections. Properly attach and detach the children listening socket when accepting and closing the server connections. Closes #4833 Merge branch '4833-tlssock-needs-to-attach-to-child-tlslistener' into 'main' Closes #4833 See merge request isc-projects/bind9!9270 --- ee00bddf94ffbb2ff0565e389de32de72753939e