From 5dcb42f5bbd41da02a0b32a11a1912f7b90686a8 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Wed, 19 May 1999 09:14:58 +0000 Subject: [PATCH] not all combinations of quoted and unquoted strings were supported in ISDN records --- lib/dns/rdata/generic/isdn_20.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/dns/rdata/generic/isdn_20.c b/lib/dns/rdata/generic/isdn_20.c index d051a068b5..a11b1ad766 100644 --- a/lib/dns/rdata/generic/isdn_20.c +++ b/lib/dns/rdata/generic/isdn_20.c @@ -15,7 +15,7 @@ * SOFTWARE. */ - /* $Id*/ + /* $Id: isdn_20.c,v 1.5 1999/05/19 09:14:58 gson Exp $ */ /* RFC 1183 */ @@ -36,12 +36,13 @@ fromtext_isdn(dns_rdataclass_t class, dns_rdatatype_t type, downcase = downcase; /*unused*/ /* ISDN-address */ - RETERR(gettoken(lexer, &token, isc_tokentype_string, ISC_FALSE)); + RETERR(gettoken(lexer, &token, isc_tokentype_qstring, ISC_FALSE)); RETERR(txt_fromtext(&token.value.as_textregion, target)); /* sa: optional */ RETERR(gettoken(lexer, &token, isc_tokentype_qstring, ISC_TRUE)); - if (token.type != isc_tokentype_string) { + if (token.type != isc_tokentype_string && + token.type != isc_tokentype_qstring) { isc_lex_ungettoken(lexer, &token); return (DNS_R_SUCCESS); }