2
0
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:
Mark Andrews
2023-01-17 17:31:40 +11:00
parent 08c39736a9
commit b74dd2e8c2

View 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);
}