]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Require 'ctx' to be non-NULL in cfg_acl_fromconfig{,2}
authorMark Andrews <marka@isc.org>
Mon, 25 Jan 2021 05:32:06 +0000 (16:32 +1100)
committerMark Andrews <marka@isc.org>
Thu, 28 Jan 2021 01:54:59 +0000 (01:54 +0000)
lib/isccfg/aclconf.c
lib/isccfg/include/isccfg/aclconf.h

index e1ae89cdba89e4d09e1d12b4582faa607549927b..f748199b7444ff6c92427ad217ee184fa9fcde04 100644 (file)
@@ -643,6 +643,7 @@ cfg_acl_fromconfig2(const cfg_obj_t *caml, const cfg_obj_t *cctx,
                new_nest_level = nest_level - 1;
        }
 
+       REQUIRE(ctx != NULL);
        REQUIRE(target != NULL);
        REQUIRE(*target == NULL || DNS_ACL_VALID(*target));
 
index b2002c1762e0d66865ba8a369c4b7c79adeb7fbd..81e43129d8aa1cc4a5d9c3af989a23427c64d83d 100644 (file)
@@ -81,6 +81,10 @@ cfg_acl_fromconfig2(const cfg_obj_t *caml, const cfg_obj_t *cctx,
  * of a matching family (AF_INET or AF_INET6) may be configured.
  *
  * On success, attach '*target' to the new dns_acl_t object.
+ *
+ * Require:
+ *     'ctx' to be non NULL.
+ *     '*target' to be NULL or a valid dns_acl_t.
  */
 
 ISC_LANG_ENDDECLS