summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelte Jansen <jelte@NLnetLabs.nl>2008-01-09 15:03:39 +0100
committerJelte Jansen <jelte@NLnetLabs.nl>2008-01-09 15:03:39 +0100
commitfe371c14f3e9657060e25b501534e9f697a8f78d (patch)
treef250bf2f93505bb612e681a1777a8fb9a3f4a19c
parentda5a40eab5794f7c9680f1d3939958702826d2c6 (diff)
downloadldns-release-1.2.x.tar.gz
bad return value checkrelease-1.2.x
-rw-r--r--rr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rr.c b/rr.c
index 86703877..c078cc5a 100644
--- a/rr.c
+++ b/rr.c
@@ -431,7 +431,7 @@ ldns_rr_new_frm_str(ldns_rr **newrr, const char *str, uint16_t default_ttl, ldns
}
}
} else if (rd_strlen > 1 && !ldns_dname_str_absolute(rd) && origin) {
- if (!ldns_dname_cat(r, origin)) {
+ if (ldns_dname_cat(r, origin) != LDNS_STATUS_OK) {
return LDNS_STATUS_ERR;
}
}