From: Willem Toorop Date: Thu, 12 May 2016 09:12:52 +0000 (+0200) Subject: Fix bug that came along Ray's const goodness X-Git-Tag: release-1.7.0-rc1~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61cc209b392dc2c17ebe1f129e7cc1f509e88441;p=thirdparty%2Fldns.git Fix bug that came along Ray's const goodness --- 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);