Merge branch '3068-fix-rare-control-channel-socket-reference-leak' into 'main'

Fix rare control channel socket reference leak

Closes #3068

See merge request isc-projects/bind9!5673
This commit is contained in:
Michał Kępień
2021-12-28 12:42:45 +00:00

View File

@@ -412,7 +412,7 @@ control_recvmessage(isc_nmhandle_t *handle, isc_result_t result, void *arg) {
}
if (result != ISC_R_SUCCESS) {
if (result == ISC_R_CANCELED) {
if (result == ISC_R_SHUTTINGDOWN || result == ISC_R_CANCELED) {
atomic_store_release(&listener->controls->shuttingdown,
true);
} else if (result != ISC_R_EOF) {