mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
Added code to reject lines beginning with $ that are not known Directives.
Any name starting with $ should be escaped to comply with RFC1035. Effect any zone will stop loading at first error, message is printed if logging has been enabled.
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: master.c,v 1.37 2000/02/02 00:36:34 gson Exp $ */
|
/* $Id: master.c,v 1.38 2000/02/03 19:03:59 ogud Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -366,6 +366,15 @@ load(isc_lex_t *lex, dns_name_t *top, dns_name_t *origin,
|
|||||||
ttl_offset = current_time - dump_time;
|
ttl_offset = current_time - dump_time;
|
||||||
read_till_eol = ISC_TRUE;
|
read_till_eol = ISC_TRUE;
|
||||||
continue;
|
continue;
|
||||||
|
} else if (strncasecmp(token.value.as_pointer,
|
||||||
|
"$", 1) == 0) {
|
||||||
|
(callbacks->error)(callbacks,
|
||||||
|
"dns_master_load: %s %d "
|
||||||
|
"UNKOWN $<DIRECTIVE> %s ",
|
||||||
|
isc_lex_getsourcename(lex),
|
||||||
|
isc_lex_getsourceline(lex),
|
||||||
|
token.value.as_pointer);
|
||||||
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user