769. [func] Improved error reporting when parsing rdata. [RT #740]

Two new error codes.  Also push back the last token, if it makes
sense to do so, so that it gets printed in the error message using
RETTOK macro, rather than straight return or RETERR.
This commit is contained in:
Mark Andrews
2001-03-06 22:11:18 +00:00
parent 93e66a44a0
commit 9ac7076eba
43 changed files with 209 additions and 177 deletions

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: minfo_14.c,v 1.37 2001/02/12 03:04:46 bwelling Exp $ */
/* $Id: minfo_14.c,v 1.38 2001/03/06 22:10:51 marka Exp $ */
/* reviewed: Wed Mar 15 17:45:32 PST 2000 by brister */
@@ -42,7 +42,7 @@ fromtext_minfo(ARGS_FROMTEXT) {
dns_name_init(&name, NULL);
buffer_fromregion(&buffer, &token.value.as_region);
origin = (origin != NULL) ? origin : dns_rootname;
RETERR(dns_name_fromtext(&name, &buffer, origin,
RETTOK(dns_name_fromtext(&name, &buffer, origin,
downcase, target));
}
return (ISC_R_SUCCESS);