]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Correct the DbC check order in isc__nm_async_tcpchildstop()
authorOndřej Surý <ondrej@isc.org>
Tue, 10 Dec 2019 09:46:49 +0000 (10:46 +0100)
committerOndřej Surý <ondrej@isc.org>
Tue, 10 Dec 2019 12:43:18 +0000 (13:43 +0100)
lib/isc/netmgr/tcp.c

index e1bbeab48e25f9385769a3dd9dea3c6ecc90c17f..d6ba3f4a999eba76cfff02c3ea18d0a6a1705113 100644 (file)
@@ -567,8 +567,8 @@ isc__nm_async_tcpchildstop(isc__networker_t *worker, isc__netievent_t *ev0) {
 
        UNUSED(worker);
 
-       REQUIRE(isc_nm_tid() == sock->tid);
        REQUIRE(VALID_NMSOCK(sock));
+       REQUIRE(isc_nm_tid() == sock->tid);
        REQUIRE(sock->type == isc_nm_tcpchildlistener);
        REQUIRE(sock->parent != NULL);