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:
parent
b2c1904c6f
commit
5dcb42f5bb
@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id*/
|
/* $Id: isdn_20.c,v 1.5 1999/05/19 09:14:58 gson Exp $ */
|
||||||
|
|
||||||
/* RFC 1183 */
|
/* RFC 1183 */
|
||||||
|
|
||||||
@ -36,12 +36,13 @@ fromtext_isdn(dns_rdataclass_t class, dns_rdatatype_t type,
|
|||||||
downcase = downcase; /*unused*/
|
downcase = downcase; /*unused*/
|
||||||
|
|
||||||
/* ISDN-address */
|
/* 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));
|
RETERR(txt_fromtext(&token.value.as_textregion, target));
|
||||||
|
|
||||||
/* sa: optional */
|
/* sa: optional */
|
||||||
RETERR(gettoken(lexer, &token, isc_tokentype_qstring, ISC_TRUE));
|
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);
|
isc_lex_ungettoken(lexer, &token);
|
||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user