2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-04 00:25:29 +00:00

Treat undefined acls as an error, rather than warning and then later

throwing an assertion.
This commit is contained in:
Brian Wellington
2000-08-11 00:20:59 +00:00
parent a3e7b6450e
commit de58ecaa9c

View File

@@ -16,7 +16,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: confparser.y.dirty,v 1.8 2000/08/08 23:04:55 bwelling Exp $ */ /* $Id: confparser.y.dirty,v 1.9 2000/08/11 00:20:59 bwelling Exp $ */
#include <config.h> #include <config.h>
@@ -3312,10 +3312,10 @@ address_name: any_string
tmpres = dns_c_acltable_getacl(currcfg->acls, tmpres = dns_c_acltable_getacl(currcfg->acls,
$1, &acl); $1, &acl);
if (tmpres == ISC_R_NOTFOUND) { if (tmpres == ISC_R_NOTFOUND) {
parser_warning(ISC_FALSE, parser_error(ISC_FALSE,
"undefined acl '%s' " "undefined acl '%s' "
"referenced", $1); "referenced", $1);
elem = NULL; YYABORT;
} else { } else {
tmpres = dns_c_ipmatch_aclnew(currcfg->mem, tmpres = dns_c_ipmatch_aclnew(currcfg->mem,
&elem, $1); &elem, $1);