mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 08:59:59 -04:00
silence coverity
This commit is contained in:
parent
2ea91c4c5b
commit
a52b7860ff
1 changed files with 1 additions and 0 deletions
|
|
@ -235,6 +235,7 @@ isc_netaddr_prefixok(const isc_netaddr_t *na, unsigned int prefixlen) {
|
|||
nbytes = prefixlen / 8;
|
||||
nbits = prefixlen % 8;
|
||||
if (nbits != 0) {
|
||||
INSIST(nbytes < ipbytes);
|
||||
if ((p[nbytes] & (0xff>>nbits)) != 0U)
|
||||
return (ISC_R_FAILURE);
|
||||
nbytes++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue