summaryrefslogtreecommitdiff
path: root/rr.c
diff options
context:
space:
mode:
authorMatthijs Mekking <matje@NLnetLabs.nl>2009-10-16 09:26:22 +0200
committerMatthijs Mekking <matje@NLnetLabs.nl>2009-10-16 09:26:22 +0200
commit187200b1e38824eeeea342112d474be3709265b2 (patch)
treef6865a4646c0a28df7ddf5ccb343c23b6b1f48da /rr.c
parentedfbe0ebb8009a87bd7dcfda6de48c3aa2a90281 (diff)
downloadldns-187200b1e38824eeeea342112d474be3709265b2.tar.gz
bug 287
Diffstat (limited to 'rr.c')
-rw-r--r--rr.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/rr.c b/rr.c
index c6ec394c..8faae5c2 100644
--- a/rr.c
+++ b/rr.c
@@ -355,9 +355,7 @@ ldns_rr_new_frm_str_internal(ldns_rr **newrr, const char *str,
ldns_rr_descriptor_field_type(desc,
r_cnt) == LDNS_RDF_TYPE_WKS ||
ldns_rr_descriptor_field_type(desc,
- r_cnt) == LDNS_RDF_TYPE_NSEC ||
- ldns_rr_descriptor_field_type(desc,
- r_cnt) == LDNS_RDF_TYPE_STR) {
+ r_cnt) == LDNS_RDF_TYPE_NSEC) {
delimiters = "\n\t";
} else {
delimiters = "\n\t ";
@@ -374,9 +372,8 @@ ldns_rr_new_frm_str_internal(ldns_rr **newrr, const char *str,
if (*(ldns_buffer_current(rd_buf)) == '\"') {
delimiters = "\"\0";
ldns_buffer_skip(rd_buf, 1);
+ quoted = true;
}
-
- quoted = true;
}
/* because number of fields can be variable, we can't