]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
DoH: Remove unneeded isc__nmsocket_prep_destroy() call
authorArtem Boldariev <artem@boldariev.com>
Wed, 24 Nov 2021 12:03:44 +0000 (14:03 +0200)
committerArtem Boldariev <artem@boldariev.com>
Fri, 26 Nov 2021 08:23:17 +0000 (10:23 +0200)
This commit removes unneeded isc__nmsocket_prep_destroy() call on ALPN
negotiation failure, which was eventually causing the TLS handle to
leak.

This call is not needed, as not attaching to the transport (TLS)
handle should be enough. At this point it seems like a kludge from
earlier days of the TLS code.

lib/isc/netmgr/http.c

index 776f0e2b77d6d315ce9e2cd946365d1b50378974..466ae5497ac66e322237ed1928a09fbc0f516d69 100644 (file)
@@ -1379,7 +1379,6 @@ transport_connect_cb(isc_nmhandle_t *handle, isc_result_t result, void *cbarg) {
                         * client will fail if HTTP/2 cannot be
                         * negotiated via ALPN.
                         */
-                       isc__nmsocket_prep_destroy(transp_sock);
                        result = ISC_R_HTTP2ALPNERROR;
                        goto error;
                }