Commit 5cc406a9 authored by Ondřej Surý's avatar Ondřej Surý
Browse files

Fix dangling uvreq when data is sent from tlsdns_cycle()

The tlsdns_cycle() might call uv_write() to write data to the socket,
when this happens and the socket is shutdown before the callback
completes, the uvreq structure was not freed because the callback would
be called with non-zero status code.
parent 06913d3d
Pipeline #66733 canceled with stages
in 2 minutes and 3 seconds
......@@ -1079,13 +1079,13 @@ tls_write_cb(uv_write_t *req, int status) {
free_senddata(sock);
isc__nm_uvreq_put(&uvreq, sock);
if (status != 0) {
tls_error(sock, isc__nm_uverr2result(status));
return;
}
isc__nm_uvreq_put(&uvreq, sock);
result = tls_cycle(sock);
if (result != ISC_R_SUCCESS) {
tls_error(sock, result);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment