]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Fix bug that came along Ray's const goodness
authorWillem Toorop <willem@nlnetlabs.nl>
Thu, 12 May 2016 09:12:52 +0000 (11:12 +0200)
committerWillem Toorop <willem@nlnetlabs.nl>
Thu, 12 May 2016 09:12:52 +0000 (11:12 +0200)
packet.c

index 6c6f4d2ea9ad3d207403f351939f2c0048aa9d66..782150d503128b2723646a598580a2bd1da3e62b 100644 (file)
--- a/packet.c
+++ b/packet.c
@@ -1024,7 +1024,7 @@ ldns_pkt_query_new_internal(const ldns_rdf *rr_name, ldns_rr_type rr_type,
                rr_class = LDNS_RR_CLASS_IN;
        }
 
-       ldns_rr_set_owner(question_rr, ldns_rdf_clone(rr_name));
+       ldns_rr_set_owner(question_rr, rr_name);
        ldns_rr_set_type(question_rr, rr_type);
        ldns_rr_set_class(question_rr, rr_class);
         ldns_rr_set_question(question_rr, true);