From: W.C.A. Wijngaards Date: Thu, 6 Feb 2014 09:40:54 +0000 (+0100) Subject: Fix rdata parse error with parenthesis and quotes. X-Git-Tag: release-1.7.0-rc1~171 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc15733114acf3ef1144056bd571617f11cffb14;p=thirdparty%2Fldns.git Fix rdata parse error with parenthesis and quotes. --- 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)) {