mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Merge branch 'ondrej/fix-dangling-uvreq-in-tlsdns' into 'main'
Fix dangling uvreq when data is sent from tlsdns_cycle() See merge request isc-projects/bind9!4820
This commit is contained in:
@@ -1079,13 +1079,13 @@ tls_write_cb(uv_write_t *req, int status) {
|
|||||||
|
|
||||||
free_senddata(sock);
|
free_senddata(sock);
|
||||||
|
|
||||||
|
isc__nm_uvreq_put(&uvreq, sock);
|
||||||
|
|
||||||
if (status != 0) {
|
if (status != 0) {
|
||||||
tls_error(sock, isc__nm_uverr2result(status));
|
tls_error(sock, isc__nm_uverr2result(status));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
isc__nm_uvreq_put(&uvreq, sock);
|
|
||||||
|
|
||||||
result = tls_cycle(sock);
|
result = tls_cycle(sock);
|
||||||
if (result != ISC_R_SUCCESS) {
|
if (result != ISC_R_SUCCESS) {
|
||||||
tls_error(sock, result);
|
tls_error(sock, result);
|
||||||
|
Reference in New Issue
Block a user