From 61cc209b392dc2c17ebe1f129e7cc1f509e88441 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Thu, 12 May 2016 11:12:52 +0200 Subject: [PATCH] Fix bug that came along Ray's const goodness --- packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packet.c b/packet.c index 6c6f4d2e..782150d5 100644 --- 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);