summaryrefslogtreecommitdiff
path: root/rr.c
diff options
context:
space:
mode:
authorWouter Wijngaards <wouter@NLnetLabs.nl>2010-06-16 09:19:30 +0200
committerWouter Wijngaards <wouter@NLnetLabs.nl>2010-06-16 09:19:30 +0200
commitf0ac15d9656ca61cc16a5486489b9a656d83b4af (patch)
tree3d78dbb6292b0f8cc38fe4339bf99a1fda8a297b /rr.c
parentbe865a7c07924cba112608c45b84455adf9b62fc (diff)
downloadldns-f0ac15d9656ca61cc16a5486489b9a656d83b4af.tar.gz
Fix ldns_rr_clone for question rrs.
Diffstat (limited to 'rr.c')
-rw-r--r--rr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rr.c b/rr.c
index d11b9609..62e879bb 100644
--- a/rr.c
+++ b/rr.c
@@ -1253,6 +1253,7 @@ ldns_rr_clone(const ldns_rr *rr)
ldns_rr_set_ttl(new_rr, ldns_rr_ttl(rr));
ldns_rr_set_type(new_rr, ldns_rr_get_type(rr));
ldns_rr_set_class(new_rr, ldns_rr_get_class(rr));
+ ldns_rr_set_question(new_rr, ldns_rr_is_question(rr));
for (i = 0; i < ldns_rr_rd_count(rr); i++) {
if (ldns_rr_rdf(rr,i)) {