2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +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:
Andreas Gustafsson 2000-09-12 18:10:24 +00:00
parent ea91cb5231
commit a405a53d53
2 changed files with 15 additions and 2 deletions

View File

@ -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
crashed the server. [RT #290]

View File

@ -15,7 +15,7 @@
* 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>
@ -883,8 +883,16 @@ load(dns_loadctx_t **ctxp) {
result = dns_rdatatype_fromtext(&type,
&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;
}
/*
* If the class specified does not match the zone's class