summaryrefslogtreecommitdiff
path: root/rr.c
diff options
context:
space:
mode:
authorMatthijs Mekking <matje@NLnetLabs.nl>2011-02-24 11:04:29 +0100
committerMatthijs Mekking <matje@NLnetLabs.nl>2011-02-24 11:04:29 +0100
commit66afb28ef0fdd13c292e7ce2045197329e15600d (patch)
treefb13879031e28e8eef3d3e51411069cf66f7f1d3 /rr.c
parentc84d21f990333ff0f36dee5fa44283dfb97b21d7 (diff)
downloadldns-66afb28ef0fdd13c292e7ce2045197329e15600d.tar.gz
only skip whitespace if not quoted
Diffstat (limited to 'rr.c')
-rw-r--r--rr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rr.c b/rr.c
index ce0eab77..7b799b9b 100644
--- a/rr.c
+++ b/rr.c
@@ -378,7 +378,7 @@ ldns_rr_new_frm_str_internal(ldns_rr **newrr, const char *str,
rely on _maximum() only */
/* skip spaces */
while (ldns_buffer_position(rd_buf) < ldns_buffer_limit(rd_buf) &&
- *(ldns_buffer_current(rd_buf)) == ' '
+ *(ldns_buffer_current(rd_buf)) == ' ' && !quoted
) {
ldns_buffer_skip(rd_buf, 1);
}