@@ -292,7 +292,7 @@ static int32_t parse_ns_rdata(
292
292
int32_t code ;
293
293
const rdata_info_t * fields = type -> rdata .fields ;
294
294
295
- if ((code = have_contiguous_or_quoted (parser , type , & fields [0 ], token )) < 0 )
295
+ if ((code = have_contiguous (parser , type , & fields [0 ], token )) < 0 )
296
296
return code ;
297
297
if ((code = parse_name (parser , type , & fields [0 ], rdata , token )) < 0 )
298
298
return code ;
@@ -332,11 +332,11 @@ static int32_t parse_soa_rdata(
332
332
int32_t code ;
333
333
const rdata_info_t * fields = type -> rdata .fields ;
334
334
335
- if ((code = have_contiguous_or_quoted (parser , type , & fields [0 ], token )) < 0 )
335
+ if ((code = have_contiguous (parser , type , & fields [0 ], token )) < 0 )
336
336
return code ;
337
337
if ((code = parse_name (parser , type , & fields [0 ], rdata , token )) < 0 )
338
338
return code ;
339
- if ((code = take_contiguous_or_quoted (parser , type , & fields [1 ], token )) < 0 )
339
+ if ((code = take_contiguous (parser , type , & fields [1 ], token )) < 0 )
340
340
return code ;
341
341
if ((code = parse_name (parser , type , & fields [1 ], rdata , token )) < 0 )
342
342
return code ;
@@ -501,11 +501,11 @@ static int32_t parse_minfo_rdata(
501
501
int32_t code ;
502
502
const rdata_info_t * fields = type -> rdata .fields ;
503
503
504
- if ((code = have_contiguous_or_quoted (parser , type , & fields [0 ], token )) < 0 )
504
+ if ((code = have_contiguous (parser , type , & fields [0 ], token )) < 0 )
505
505
return code ;
506
506
if ((code = parse_name (parser , type , & fields [0 ], rdata , token )) < 0 )
507
507
return code ;
508
- if ((code = take_contiguous_or_quoted (parser , type , & fields [1 ], token )) < 0 )
508
+ if ((code = take_contiguous (parser , type , & fields [1 ], token )) < 0 )
509
509
return code ;
510
510
if ((code = parse_name (parser , type , & fields [1 ], rdata , token )) < 0 )
511
511
return code ;
@@ -703,7 +703,7 @@ static int32_t parse_rt_rdata(
703
703
return code ;
704
704
if ((code = parse_int16 (parser , type , & fields [0 ], rdata , token )) < 0 )
705
705
return code ;
706
- if ((code = take_contiguous_or_quoted (parser , type , & fields [1 ], token )) < 0 )
706
+ if ((code = take_contiguous (parser , type , & fields [1 ], token )) < 0 )
707
707
return code ;
708
708
if ((code = parse_name (parser , type , & fields [1 ], rdata , token )) < 0 )
709
709
return code ;
@@ -790,7 +790,7 @@ static int32_t parse_nsap_ptr_rdata(
790
790
int32_t code ;
791
791
const rdata_info_t * fields = type -> rdata .fields ;
792
792
793
- if ((code = have_contiguous_or_quoted (parser , type , & fields [0 ], token )) < 0 )
793
+ if ((code = have_contiguous (parser , type , & fields [0 ], token )) < 0 )
794
794
return code ;
795
795
if ((code = parse_name (parser , type , & fields [0 ], rdata , token )) < 0 )
796
796
return code ;
@@ -882,11 +882,11 @@ static int32_t parse_px_rdata(
882
882
return code ;
883
883
if ((code = parse_int16 (parser , type , & fields [0 ], rdata , token )) < 0 )
884
884
return code ;
885
- if ((code = take_contiguous_or_quoted (parser , type , & fields [1 ], token )) < 0 )
885
+ if ((code = take_contiguous (parser , type , & fields [1 ], token )) < 0 )
886
886
return code ;
887
887
if ((code = parse_name (parser , type , & fields [1 ], rdata , token )) < 0 )
888
888
return code ;
889
- if ((code = take_contiguous_or_quoted (parser , type , & fields [2 ], token )) < 0 )
889
+ if ((code = take_contiguous (parser , type , & fields [2 ], token )) < 0 )
890
890
return code ;
891
891
if ((code = parse_name (parser , type , & fields [2 ], rdata , token )) < 0 )
892
892
return code ;
@@ -1117,7 +1117,7 @@ static int32_t parse_nxt_rdata(
1117
1117
int32_t code ;
1118
1118
const rdata_info_t * fields = type -> rdata .fields ;
1119
1119
1120
- if ((code = have_contiguous_or_quoted (parser , type , & fields [0 ], token )) < 0 )
1120
+ if ((code = have_contiguous (parser , type , & fields [0 ], token )) < 0 )
1121
1121
return code ;
1122
1122
if ((code = parse_name (parser , type , & fields [0 ], rdata , token )) < 0 )
1123
1123
return code ;
@@ -1168,7 +1168,7 @@ static int32_t parse_srv_rdata(
1168
1168
return code ;
1169
1169
if ((code = parse_int16 (parser , type , & fields [2 ], rdata , token )) < 0 )
1170
1170
return code ;
1171
- if ((code = take_contiguous_or_quoted (parser , type , & fields [3 ], token )) < 0 )
1171
+ if ((code = take_contiguous (parser , type , & fields [3 ], token )) < 0 )
1172
1172
return code ;
1173
1173
if ((code = parse_name (parser , type , & fields [3 ], rdata , token )) < 0 )
1174
1174
return code ;
@@ -1213,7 +1213,7 @@ static int32_t parse_naptr_rdata(
1213
1213
return code ;
1214
1214
if ((code = parse_string (parser , type , & fields [4 ], rdata , token )) < 0 )
1215
1215
return code ;
1216
- if ((code = take_contiguous_or_quoted (parser , type , & fields [5 ], token )) < 0 )
1216
+ if ((code = take_contiguous (parser , type , & fields [5 ], token )) < 0 )
1217
1217
return code ;
1218
1218
if ((code = parse_name (parser , type , & fields [5 ], rdata , token )) < 0 )
1219
1219
return code ;
@@ -1504,28 +1504,24 @@ static int32_t parse_ipseckey_rdata(
1504
1504
return code ;
1505
1505
if ((code = parse_int8 (parser , type , & fields [2 ], rdata , token )) < 0 )
1506
1506
return code ;
1507
+ if ((code = take_contiguous (parser , type , & fields [3 ], token )) < 0 )
1508
+ return code ;
1507
1509
1508
1510
switch (octets [1 ]) {
1509
1511
case 1 : /* IPv4 address */
1510
1512
type = (const type_info_t * )ipseckey_ipv4 ;
1511
1513
fields = type -> rdata .fields ;
1512
- if ((code = take_contiguous (parser , type , & fields [3 ], token )) < 0 )
1513
- return code ;
1514
1514
if ((code = parse_ip4 (parser , type , & fields [3 ], rdata , token )) < 0 )
1515
1515
return code ;
1516
1516
break ;
1517
1517
case 2 : /* IPv6 address */
1518
1518
type = (const type_info_t * )ipseckey_ipv6 ;
1519
1519
fields = type -> rdata .fields ;
1520
- if ((code = take_contiguous (parser , type , & fields [3 ], token )) < 0 )
1521
- return code ;
1522
1520
if ((code = parse_ip6 (parser , type , & fields [3 ], rdata , token )) < 0 )
1523
1521
return code ;
1524
1522
break ;
1525
1523
case 0 : /* no gateway */
1526
1524
case 3 : /* domain name */
1527
- if ((code = take_contiguous_or_quoted (parser , type , & fields [3 ], token )) < 0 )
1528
- return code ;
1529
1525
if ((code = parse_name (parser , type , & fields [3 ], rdata , token )) < 0 )
1530
1526
return code ;
1531
1527
break ;
@@ -1608,7 +1604,7 @@ static int32_t parse_rrsig_rdata(
1608
1604
return code ;
1609
1605
if ((code = parse_int16 (parser , type , & fields [6 ], rdata , token )) < 0 )
1610
1606
return code ;
1611
- if ((code = take_contiguous_or_quoted (parser , type , & fields [7 ], token )) < 0 )
1607
+ if ((code = take_contiguous (parser , type , & fields [7 ], token )) < 0 )
1612
1608
return code ;
1613
1609
if ((code = parse_name (parser , type , & fields [7 ], rdata , token )) < 0 )
1614
1610
return code ;
@@ -1645,7 +1641,7 @@ static int32_t parse_nsec_rdata(
1645
1641
int32_t code ;
1646
1642
const rdata_info_t * fields = type -> rdata .fields ;
1647
1643
1648
- if ((code = have_contiguous_or_quoted (parser , type , & fields [0 ], token )) < 0 )
1644
+ if ((code = have_contiguous (parser , type , & fields [0 ], token )) < 0 )
1649
1645
return code ;
1650
1646
if ((code = parse_name (parser , type , & fields [0 ], rdata , token )) < 0 )
1651
1647
return code ;
@@ -1928,7 +1924,7 @@ static int32_t parse_hip_rdata(
1928
1924
memcpy (& octets [2 ], & pk_length , sizeof (pk_length ));
1929
1925
1930
1926
take (parser , token );
1931
- while (is_contiguous_or_quoted (token )) {
1927
+ while (is_contiguous (token )) {
1932
1928
if ((code = parse_name (parser , type , & fields [5 ], rdata , token )) < 0 )
1933
1929
return code ;
1934
1930
take (parser , token );
@@ -2061,7 +2057,7 @@ static int32_t parse_svcb_rdata(
2061
2057
return code ;
2062
2058
if ((code = parse_int16 (parser , type , & fields [0 ], rdata , token )) < 0 )
2063
2059
return code ;
2064
- if ((code = take_contiguous_or_quoted (parser , type , & fields [1 ], token )) < 0 )
2060
+ if ((code = take_contiguous (parser , type , & fields [1 ], token )) < 0 )
2065
2061
return code ;
2066
2062
if ((code = parse_name (parser , type , & fields [1 ], rdata , token )) < 0 )
2067
2063
return code ;
@@ -2090,7 +2086,7 @@ static int32_t parse_https_rdata(
2090
2086
return code ;
2091
2087
if ((code = parse_int16 (parser , type , & fields [0 ], rdata , token )) < 0 )
2092
2088
return code ;
2093
- if ((code = take_contiguous_or_quoted (parser , type , & fields [1 ], token )) < 0 )
2089
+ if ((code = take_contiguous (parser , type , & fields [1 ], token )) < 0 )
2094
2090
return code ;
2095
2091
if ((code = parse_name (parser , type , & fields [1 ], rdata , token )) < 0 )
2096
2092
return code ;
0 commit comments