$OpenBSD: patch-lib_isccfg_aclconf_c,v 1.1 2021/02/25 16:37:22 sthen Exp $

From a8b55992a8ac3cf717d99b1dd05b7cb3ed841a5d Mon Sep 17 00:00:00 2001
From: Mark Andrews <marka@isc.org>
Date: Mon, 25 Jan 2021 16:32:06 +1100
Subject: [PATCH 2/5] Require 'ctx' to be non-NULL in cfg_acl_fromconfig{,2}

Index: lib/isccfg/aclconf.c
--- lib/isccfg/aclconf.c.orig
+++ lib/isccfg/aclconf.c
@@ -643,6 +643,7 @@ cfg_acl_fromconfig2(const cfg_obj_t *caml, const cfg_o
 		new_nest_level = nest_level - 1;
 	}
 
+	REQUIRE(ctx != NULL);
 	REQUIRE(target != NULL);
 	REQUIRE(*target == NULL || DNS_ACL_VALID(*target));
 
