mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +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:
parent
7618f0551e
commit
3a36d3d7e6
@ -15,7 +15,7 @@
|
||||
* 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>
|
||||
|
||||
@ -366,6 +366,15 @@ load(isc_lex_t *lex, dns_name_t *top, dns_name_t *origin,
|
||||
ttl_offset = current_time - dump_time;
|
||||
read_till_eol = ISC_TRUE;
|
||||
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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user