mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
443. [bug] When loading a master file failed because of an
unrecognized RR type name, the error message did not include the file name and line number. [RT #285]
This commit is contained in:
5
CHANGES
5
CHANGES
@@ -1,3 +1,8 @@
|
|||||||
|
443. [bug] When loading a master file failed because of an
|
||||||
|
unrecognized RR type name, the error message
|
||||||
|
did not include the file name and line number.
|
||||||
|
[RT #285]
|
||||||
|
|
||||||
442. [bug] TSIG signed messages that did not match any view
|
442. [bug] TSIG signed messages that did not match any view
|
||||||
crashed the server. [RT #290]
|
crashed the server. [RT #290]
|
||||||
|
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: master.c,v 1.64 2000/09/05 03:35:17 marka Exp $ */
|
/* $Id: master.c,v 1.65 2000/09/12 18:10:24 gson Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -883,8 +883,16 @@ load(dns_loadctx_t **ctxp) {
|
|||||||
|
|
||||||
result = dns_rdatatype_fromtext(&type,
|
result = dns_rdatatype_fromtext(&type,
|
||||||
&token.value.as_textregion);
|
&token.value.as_textregion);
|
||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS) {
|
||||||
|
(*callbacks->warn)(callbacks,
|
||||||
|
"%s: %s:%lu: unknown RR type '%.*s'",
|
||||||
|
"dns_master_load",
|
||||||
|
isc_lex_getsourcename(ctx->lex),
|
||||||
|
isc_lex_getsourceline(ctx->lex),
|
||||||
|
token.value.as_textregion.length,
|
||||||
|
token.value.as_textregion.base);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If the class specified does not match the zone's class
|
* If the class specified does not match the zone's class
|
||||||
|
Reference in New Issue
Block a user