summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)) {