From: Wouter Wijngaards Date: Tue, 24 Sep 2019 14:51:09 +0000 (+0200) Subject: Fix #70 fix code. X-Git-Tag: 1.8.0-rc.1~79^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e9861576a600a5ecfa16ec2de853c90dd9ce276;p=thirdparty%2Fldns.git Fix #70 fix code. --- diff --git a/rr.c b/rr.c index adf67ae4..2547acb8 100644 --- a/rr.c +++ b/rr.c @@ -365,12 +365,12 @@ ldns_rr_new_frm_str_internal(ldns_rr **newrr, const char *str, ldns_buffer_remaining(rd_buf) > 0){ /* skip spaces */ - while (sldns_buffer_remaining(strbuf) > 0 && + while (ldns_buffer_remaining(rd_buf) > 0 && *(ldns_buffer_current(rd_buf)) == ' ') { ldns_buffer_skip(rd_buf, 1); } - if (sldns_buffer_remaining(strbuf) > 0 && + if (ldns_buffer_remaining(rd_buf) > 0 && *(ldns_buffer_current(rd_buf)) == '\"') { delimiters = "\"\0"; ldns_buffer_skip(rd_buf, 1);