mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 21:47:59 +00:00
DoH: Remove unneeded isc__nmsocket_prep_destroy() call
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.
This commit is contained in:
parent
c52a383523
commit
0b0c29dd51
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user