2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

fix coverity issues

3388.	[bug]		Fixed several Coverity warnings. [RT #30996]
This commit is contained in:
Evan Hunt
2012-10-02 23:44:03 -07:00
parent 02bbbc26be
commit 41bbb34bc2
26 changed files with 119 additions and 86 deletions

View File

@@ -508,7 +508,7 @@ ip2name(dns_rpz_cidr_t *cidr, const dns_rpz_cidr_key_t *tgt_ip,
while (i < DNS_RPZ_CIDR_WORDS * 2 && w[i] == 0)
++i;
}
if (len > (int)sizeof(str))
if (len >= (int)sizeof(str))
return (ISC_R_FAILURE);
}
}