2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-28 21:17:54 +00:00

calling isc__nm_udp_send() on a non-udp socket is not 'unexpected', it's a critical failure

This commit is contained in:
Witold Kręcicki 2020-01-17 12:07:34 +01:00
parent 8d6dc8613a
commit 42f0e25a4c

View File

@ -383,7 +383,8 @@ isc__nm_udp_send(isc_nmhandle_t *handle, isc_region_t *region,
} else if (sock->type == isc_nm_udplistener) {
psock = sock;
} else {
return (ISC_R_UNEXPECTED);
INSIST(0);
ISC_UNREACHABLE();
}
if (!isc__nmsocket_active(sock)) {