]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Fix rdata parse error with parenthesis and quotes.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 6 Feb 2014 09:40:54 +0000 (10:40 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 6 Feb 2014 09:40:54 +0000 (10:40 +0100)
rr.c

diff --git a/rr.c b/rr.c
index cfee170eb2b7655c88d6360b5f28cca94671d025..5fe4f6ee775ed09f8b183811124b618db3826da0 100644 (file)
--- 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)) {