]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use INSIST rather then REQUIRE to meet DBC usage rules
authorMark Andrews <marka@isc.org>
Tue, 17 Jan 2023 06:31:40 +0000 (17:31 +1100)
committerMark Andrews <marka@isc.org>
Fri, 20 Jan 2023 00:05:24 +0000 (11:05 +1100)
lib/isc/netmgr/udp.c

index 75adf446715702009fd78dfcb0151b2c1e638d4a..be043c14a4236c91f0ae9461f1eba8246f09f12b 100644 (file)
@@ -110,7 +110,7 @@ start_udp_child(isc_nm_t *mgr, isc_sockaddr_t *iface, isc_nmsocket_t *sock,
        } else {
                csock->fd = dup(fd);
        }
-       REQUIRE(csock->fd >= 0);
+       INSIST(csock->fd >= 0);
 
        ievent = isc__nm_get_netievent_udplisten(worker, csock);
 
@@ -198,7 +198,7 @@ isc_nm_listenudp(isc_nm_t *mgr, uint32_t workers, isc_sockaddr_t *iface,
 
                return (result);
        }
-       REQUIRE(atomic_load(&sock->rchildren) == sock->nchildren);
+       INSIST(atomic_load(&sock->rchildren) == sock->nchildren);
        *sockp = sock;
        return (ISC_R_SUCCESS);
 }