mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-22 09:20:51 -05:00
silence coverity - reviewed by Evan over jabber
This commit is contained in:
parent
6f6b7781d5
commit
e31a37787b
1 changed files with 1 additions and 1 deletions
|
|
@ -240,7 +240,7 @@ isc_netaddr_prefixok(const isc_netaddr_t *na, unsigned int prefixlen) {
|
|||
return (ISC_R_FAILURE);
|
||||
nbytes++;
|
||||
}
|
||||
if (memcmp(p + nbytes, zeros, ipbytes - nbytes) != 0)
|
||||
if (nbytes < ipbytes && memcmp(p + nbytes, zeros, ipbytes - nbytes) != 0)
|
||||
return (ISC_R_FAILURE);
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue