2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-01 15:05:23 +00:00

Add couple more ISC_UNREACHABLE(); found thanks to coccinelle

This commit is contained in:
Ondřej Surý
2018-11-08 22:57:03 +07:00
committed by Ondřej Surý
parent 21db43da8e
commit 2271e77d99
2 changed files with 4 additions and 4 deletions

View File

@@ -810,7 +810,7 @@ dns_geoip_match(const isc_netaddr_t *reqaddr,
default: default:
INSIST(0); INSIST(0);
ISC_UNREACHABLE() ISC_UNREACHABLE();
} }
return (false); return (false);

View File

@@ -334,7 +334,7 @@ make_addr_set(dns_rpz_addr_zbits_t *tgt_set, dns_rpz_zbits_t zbits,
break; break;
default: default:
INSIST(0); INSIST(0);
break; ISC_UNREACHABLE();
} }
} }
@@ -353,7 +353,7 @@ make_nm_set(dns_rpz_nm_zbits_t *tgt_set,
break; break;
default: default:
INSIST(0); 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; break;
default: default:
INSIST(0); INSIST(0);
break; ISC_UNREACHABLE();
} }
result = ip2name(&found->ip, found->prefix, dns_rootname, ip_name); result = ip2name(&found->ip, found->prefix, dns_rootname, ip_name);
RWUNLOCK(&rpzs->search_lock, isc_rwlocktype_read); RWUNLOCK(&rpzs->search_lock, isc_rwlocktype_read);