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

Fix coverity warnings in acl.c and iptable.c [rt17455]

This commit is contained in:
Evan Hunt
2008-01-17 08:08:08 +00:00
parent c6d486af36
commit 1aba9fe678
4 changed files with 26 additions and 11 deletions

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: acl.c,v 1.37 2007/12/21 06:46:47 marka Exp $ */
/* $Id: acl.c,v 1.38 2008/01/17 08:08:08 each Exp $ */
/*! \file */
@@ -102,7 +102,13 @@ dns_acl_anyornone(isc_mem_t *mctx, isc_boolean_t neg, dns_acl_t **target) {
result = dns_acl_create(mctx, 0, &acl);
if (result != ISC_R_SUCCESS)
return (result);
dns_iptable_addprefix(acl->iptable, NULL, 0, ISC_TF(!neg));
result = dns_iptable_addprefix(acl->iptable, NULL, 0, ISC_TF(!neg));
if (result != ISC_R_SUCCESS) {
dns_acl_detach(&acl);
return (result);
}
*target = acl;
return (result);
}