From a60bbd12ed90fec3ee41fb112234bb481b2f6e79 Mon Sep 17 00:00:00 2001 From: George Thessalonikefs Date: Mon, 31 Jan 2022 11:27:35 +0100 Subject: [PATCH] -Fix review comment for use-after-free when failing to send UDP out. --- doc/Changelog | 3 +++ services/outside_network.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/Changelog b/doc/Changelog index 9b9dd0557..534987789 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +31 January 2022: George + - Fix review comment for use-after-free when failing to send UDP out. + 29 January 2022: George - Fix tls-* and ssl-* documented alternate syntax to also be available through remote-control and unbound-checkconf. diff --git a/services/outside_network.c b/services/outside_network.c index 651f221fd..eff7758c4 100644 --- a/services/outside_network.c +++ b/services/outside_network.c @@ -1384,8 +1384,9 @@ outnet_send_wait_udp(struct outside_network* outnet) NETEVENT_CLOSED, NULL); } pending_delete(outnet, pend); + } else { + pend->sq->busy = 0; } - pend->sq->busy = 0; } }