mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-12 11:40:00 -04:00
silence coverity - reviewed by Evan over jabber
(cherry picked from commit e31a37787b)
This commit is contained in:
parent
a4e8344569
commit
7856e63cd4
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