mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
refering to a non-existant acl causes segfault.
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
#endif
|
||||
|
||||
#if !defined(lint) && !defined(SABER)
|
||||
static char rcsid[] = "$Id: confparser.y,v 1.10 1999/10/13 17:55:47 brister Exp $";
|
||||
static char rcsid[] = "$Id: confparser.y,v 1.11 1999/10/13 23:19:45 marka Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <config.h>
|
||||
@@ -655,8 +655,10 @@ option: /* Empty */
|
||||
| L_QUERY_SOURCE query_source
|
||||
| L_ALLOW_QUERY L_LBRACE address_match_list L_RBRACE
|
||||
{
|
||||
tmpres = dns_c_ctx_setqueryacl(logcontext, currcfg,
|
||||
ISC_FALSE, $3);
|
||||
if ($3 == NULL)
|
||||
YYABORT;
|
||||
tmpres = dns_c_ctx_setqueryacl(logcontext, currcfg,
|
||||
ISC_FALSE, $3);
|
||||
if (tmpres == ISC_R_EXISTS) {
|
||||
parser_error(ISC_FALSE, "Redefining allow-query list");
|
||||
} else if (tmpres != ISC_R_SUCCESS) {
|
||||
|
Reference in New Issue
Block a user