mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Use INSIST rather then REQUIRE to meet DBC usage rules
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user