summaryrefslogtreecommitdiff
path: root/rr.c
diff options
context:
space:
mode:
authorMatthijs Mekking <matje@NLnetLabs.nl>2009-11-12 14:22:14 +0100
committerMatthijs Mekking <matje@NLnetLabs.nl>2009-11-12 14:22:14 +0100
commit10fe56735397e1d7e0a8474c14a8d9ee6f585106 (patch)
tree2b22173ad8236ae44248f517740274c7bc14beb6 /rr.c
parent212c30d49f437a52240d5bb61e904dd499a76b9b (diff)
downloadldns-10fe56735397e1d7e0a8474c14a8d9ee6f585106.tar.gz
allow for rdlen 0
Diffstat (limited to 'rr.c')
-rw-r--r--rr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rr.c b/rr.c
index 5175f3b8..48275b51 100644
--- a/rr.c
+++ b/rr.c
@@ -340,7 +340,7 @@ ldns_rr_new_frm_str_internal(ldns_rr **newrr, const char *str,
r_max = ldns_rr_descriptor_maximum(desc);
r_min = ldns_rr_descriptor_minimum(desc);
} else {
- r_min = 1;
+ r_min = 0;
r_max = 1;
}
@@ -1822,7 +1822,7 @@ static const ldns_rdf_type type_tsig_wireformat[] = {
*/
static ldns_rr_descriptor rdata_field_descriptors[] = {
/* 0 */
- { 0, NULL, 1, 1, type_0_wireformat, LDNS_RDF_TYPE_NONE, LDNS_RR_NO_COMPRESS, 0 },
+ { 0, NULL, 0, 1, type_0_wireformat, LDNS_RDF_TYPE_NONE, LDNS_RR_NO_COMPRESS, 0 },
/* 1 */
{LDNS_RR_TYPE_A, "A", 1, 1, type_a_wireformat, LDNS_RDF_TYPE_NONE, LDNS_RR_NO_COMPRESS, 0 },
/* 2 */