summaryrefslogtreecommitdiff
path: root/rr.c
diff options
context:
space:
mode:
authorJelte Jansen <jelte@NLnetLabs.nl>2009-08-06 10:07:10 +0200
committerJelte Jansen <jelte@NLnetLabs.nl>2009-08-06 10:07:10 +0200
commit38391a90c624e14a544dfc47aba6708ec40e6a33 (patch)
treea78e617bc7d7d13592d6faa15a537f41d4416665 /rr.c
parentb01aa2f9c76c24691e982227d465fc4f9bc32160 (diff)
downloadldns-38391a90c624e14a544dfc47aba6708ec40e6a33.tar.gz
another fix; $ORIGIN was not concatenated to dname rdf's of length 1
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 11185846..89f42041 100644
--- a/rr.c
+++ b/rr.c
@@ -481,7 +481,7 @@ ldns_rr_new_frm_str_internal(ldns_rr **newrr, const char *str,
r = ldns_rdf_new_frm_str(LDNS_RDF_TYPE_DNAME, ".");
}
}
- } else if (rd_strlen > 1 && !ldns_dname_str_absolute(rd) && origin) {
+ } else if (rd_strlen >= 1 && !ldns_dname_str_absolute(rd) && origin) {
if (ldns_dname_cat(r, origin) != LDNS_STATUS_OK) {
return LDNS_STATUS_ERR;
}