Commit 42f0e25a authored by Witold Krecicki's avatar Witold Krecicki

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

parent 8d6dc861
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment