From 4e9861576a600a5ecfa16ec2de853c90dd9ce276 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Tue, 24 Sep 2019 16:51:09 +0200 Subject: [PATCH] Fix #70 fix code. --- rr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);