mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
refering to a non-existant acl causes segfault.
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(lint) && !defined(SABER)
|
#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 */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
@@ -655,6 +655,8 @@ option: /* Empty */
|
|||||||
| L_QUERY_SOURCE query_source
|
| L_QUERY_SOURCE query_source
|
||||||
| L_ALLOW_QUERY L_LBRACE address_match_list L_RBRACE
|
| L_ALLOW_QUERY L_LBRACE address_match_list L_RBRACE
|
||||||
{
|
{
|
||||||
|
if ($3 == NULL)
|
||||||
|
YYABORT;
|
||||||
tmpres = dns_c_ctx_setqueryacl(logcontext, currcfg,
|
tmpres = dns_c_ctx_setqueryacl(logcontext, currcfg,
|
||||||
ISC_FALSE, $3);
|
ISC_FALSE, $3);
|
||||||
if (tmpres == ISC_R_EXISTS) {
|
if (tmpres == ISC_R_EXISTS) {
|
||||||
|
Reference in New Issue
Block a user