]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Restore ignoring ISC_R_CONNREFUSED in connect_read_cb
authorOndřej Surý <ondrej@isc.org>
Wed, 12 Oct 2022 17:21:42 +0000 (19:21 +0200)
committerOndřej Surý <ondrej@isc.org>
Wed, 12 Oct 2022 17:21:42 +0000 (19:21 +0200)
In ac4cc8443dddc8e900188b4beae54c7ca222094c, the ISC_R_CONNREFUSED was
removed in connect_read_cb, but it can actually happen in the udp_test:

    [ RUN      ] udp_recv_send
    connect_read_cb(0x7f2c2801a270, connection refused, (nil))

tests/isc/netmgr_common.c

index 62c9ed74eb662ee1976e0ad173c52f3de0f74ecb..3d57d940d0c0c3cf441474a71ef7226421295fdf 100644 (file)
@@ -334,6 +334,7 @@ connect_read_cb(isc_nmhandle_t *handle, isc_result_t eresult,
        case ISC_R_SHUTTINGDOWN:
        case ISC_R_CANCELED:
        case ISC_R_CONNECTIONRESET:
+       case ISC_R_CONNREFUSED:
                break;
        default:
                fprintf(stderr, "%s(%p, %s, %p)\n", __func__, handle,