]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Fix ldns_rr_clone for question rrs.
authorWouter Wijngaards <wouter@NLnetLabs.nl>
Wed, 16 Jun 2010 07:19:30 +0000 (07:19 +0000)
committerWouter Wijngaards <wouter@NLnetLabs.nl>
Wed, 16 Jun 2010 07:19:30 +0000 (07:19 +0000)
Changelog
rr.c

index a4254d50ce28474fd1e792e72185d782803d2cb2..4414364105ece088e2a6d88d903aaa4db0c97d9e 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -1,4 +1,5 @@
 1.6.6
+       * Fix ldns_rr_clone to copy question rrs properly.
 
 1.6.5
        * Catch \X where X is a digit as an error.
diff --git a/rr.c b/rr.c
index d11b96094a8e7082e9889a36ca9314f82cd66a13..62e879bb33a01313cc96449f9b9caf72c2add178 100644 (file)
--- 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)) {