]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Gracefully handle ISC_R_SHUTTINGDOWN in udp__send_cb
authorOndřej Surý <ondrej@isc.org>
Tue, 11 Oct 2022 10:29:48 +0000 (12:29 +0200)
committerOndřej Surý <ondrej@isc.org>
Wed, 12 Oct 2022 13:36:25 +0000 (15:36 +0200)
The ISC_R_SHUTTINGDOWN should be handled the same as ISC_R_CANCELED in
the udp__send_cb(), as we might be sending the data while the
loopmgr/netmgr shutdown has been initiated.

tests/isc/udp_test.c

index 64066ec28f2199a2a7434c385df239fed8fad07a..81340a2174713949e110c344871c620ac55e940a 100644 (file)
@@ -774,6 +774,7 @@ udp__send_cb(isc_nmhandle_t *handle, isc_result_t eresult, void *cbarg) {
                        }
                }
                break;
+       case ISC_R_SHUTTINGDOWN:
        case ISC_R_CANCELED:
                break;
        default: