From 2271e77d99adef64219eeca15a33c6f799cf45c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Thu, 8 Nov 2018 22:57:03 +0700 Subject: [PATCH] Add couple more ISC_UNREACHABLE(); found thanks to coccinelle --- lib/dns/geoip.c | 2 +- lib/dns/rpz.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/dns/geoip.c b/lib/dns/geoip.c index 140fe3b65e..6e0ba71675 100644 --- a/lib/dns/geoip.c +++ b/lib/dns/geoip.c @@ -810,7 +810,7 @@ dns_geoip_match(const isc_netaddr_t *reqaddr, default: INSIST(0); - ISC_UNREACHABLE() + ISC_UNREACHABLE(); } return (false); diff --git a/lib/dns/rpz.c b/lib/dns/rpz.c index 0d75ff0c66..6fcd5dca17 100644 --- a/lib/dns/rpz.c +++ b/lib/dns/rpz.c @@ -334,7 +334,7 @@ make_addr_set(dns_rpz_addr_zbits_t *tgt_set, dns_rpz_zbits_t zbits, break; default: INSIST(0); - break; + ISC_UNREACHABLE(); } } @@ -353,7 +353,7 @@ make_nm_set(dns_rpz_nm_zbits_t *tgt_set, break; default: INSIST(0); - break; + ISC_UNREACHABLE(); } } @@ -2564,7 +2564,7 @@ dns_rpz_find_ip(dns_rpz_zones_t *rpzs, dns_rpz_type_t rpz_type, break; default: INSIST(0); - break; + ISC_UNREACHABLE(); } result = ip2name(&found->ip, found->prefix, dns_rootname, ip_name); RWUNLOCK(&rpzs->search_lock, isc_rwlocktype_read);