diff --git a/bin/named/controlconf.c b/bin/named/controlconf.c index 63c4d272e4..7f50e4b03d 100644 --- a/bin/named/controlconf.c +++ b/bin/named/controlconf.c @@ -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) {