From d8d0c5b1bc97ac0f07e35a31b58ced80ce613c55 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 14 Mar 2000 04:01:52 +0000 Subject: [PATCH] explitictly REQUIRE that reqaddr is non-null in dns_acl_match --- lib/dns/acl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/dns/acl.c b/lib/dns/acl.c index 9411ac8c48..d8d86ff7e0 100644 --- a/lib/dns/acl.c +++ b/lib/dns/acl.c @@ -139,6 +139,7 @@ dns_acl_match(isc_netaddr_t *reqaddr, unsigned int i; int indirectmatch; + REQUIRE(reqaddr != NULL); REQUIRE(matchelt == NULL || *matchelt == NULL); for (i = 0; i < acl->length; i++) { @@ -173,6 +174,7 @@ dns_acl_match(isc_netaddr_t *reqaddr, * "no match". * That way, a negated indirect ACL will never become * a surprise positive match through double negation. + * XXXDCL this should be documented. */ if (indirectmatch > 0) goto matched;