2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

not all combinations of quoted and unquoted strings were supported in ISDN records

This commit is contained in:
Andreas Gustafsson 1999-05-19 09:14:58 +00:00
parent b2c1904c6f
commit 5dcb42f5bb

View File

@ -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);
}