summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>2014-02-06 10:40:54 +0100
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>2014-02-06 10:40:54 +0100
commitdc15733114acf3ef1144056bd571617f11cffb14 (patch)
tree62590a668201f1ad573a39bdea7f0e0aa7b63a08
parentc512d533df4c3182eec5438602f4d7cf49c4ae91 (diff)
downloadldns-dc15733114acf3ef1144056bd571617f11cffb14.tar.gz
Fix rdata parse error with parenthesis and quotes.
-rw-r--r--rr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rr.c b/rr.c
index cfee170e..5fe4f6ee 100644
--- a/rr.c
+++ b/rr.c
@@ -476,7 +476,7 @@ ldns_rr_new_frm_str_internal(ldns_rr **newrr, const char *str,
}
LDNS_FREE(hex_data_str);
- } else {
+ } else if(rd_strlen > 0 || quoted) {
/* Normal RR */
switch(ldns_rr_descriptor_field_type(desc, r_cnt)) {