mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-04 00:25:29 +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 {
|
} else {
|
||||||
csock->fd = dup(fd);
|
csock->fd = dup(fd);
|
||||||
}
|
}
|
||||||
REQUIRE(csock->fd >= 0);
|
INSIST(csock->fd >= 0);
|
||||||
|
|
||||||
ievent = isc__nm_get_netievent_udplisten(worker, csock);
|
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);
|
return (result);
|
||||||
}
|
}
|
||||||
REQUIRE(atomic_load(&sock->rchildren) == sock->nchildren);
|
INSIST(atomic_load(&sock->rchildren) == sock->nchildren);
|
||||||
*sockp = sock;
|
*sockp = sock;
|
||||||
return (ISC_R_SUCCESS);
|
return (ISC_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user