summaryrefslogtreecommitdiff
path: root/rr.c
diff options
context:
space:
mode:
authorWouter Wijngaards <wouter@NLnetLabs.nl>2009-08-06 09:20:31 +0200
committerWouter Wijngaards <wouter@NLnetLabs.nl>2009-08-06 09:20:31 +0200
commitb01aa2f9c76c24691e982227d465fc4f9bc32160 (patch)
tree31c9064b9e3642351d1b9dc71855eeadd3012e17 /rr.c
parentbb16ce174f9619325312728313a5be8c6c0180f7 (diff)
downloadldns-b01aa2f9c76c24691e982227d465fc4f9bc32160.tar.gz
Neater check.
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 a900bf3f..11185846 100644
--- a/rr.c
+++ b/rr.c
@@ -468,7 +468,7 @@ ldns_rr_new_frm_str_internal(ldns_rr **newrr, const char *str,
rd);
/* check if the origin should be used or concatenated */
- if (ldns_rdf_size(r) > 0 && ldns_rdf_data(r)[0] == 1
+ if (ldns_rdf_size(r) > 1 && ldns_rdf_data(r)[0] == 1
&& ldns_rdf_data(r)[1] == '@') {
ldns_rdf_deep_free(r);
if (origin) {