From: Miek Gieben Date: Thu, 8 Sep 2005 13:16:44 +0000 (+0000) Subject: only the todo in dnssec.c are left X-Git-Tag: release-1.0.0~173 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae2f470fe4e1a35bfd595cc2337ecade8c664254;p=thirdparty%2Fldns.git only the todo in dnssec.c are left --- diff --git a/packet.c b/packet.c index ada036cd..db57b965 100644 --- a/packet.c +++ b/packet.c @@ -652,15 +652,14 @@ ldns_pkt_set_querytime(ldns_pkt *packet, uint32_t time) void ldns_pkt_set_answerfrom(ldns_pkt *packet, ldns_rdf *answerfrom) { - /* TODO if exists free? packet is not the owner of the - * rdf - So no */ + /* if _answerfrom was set, this is a leak. Callers beware */ packet->_answerfrom = answerfrom; } void ldns_pkt_set_when(ldns_pkt *packet, char *when) { - /* TODO if exists free? */ + /* if _when was set, this is a leak. Callers beware */ packet->_when = when; } @@ -1043,7 +1042,7 @@ ldns_pkt_clone(ldns_pkt *pkt) ldns_pkt_set_when(new_pkt, ldns_pkt_when(pkt)); ldns_pkt_set_tsig(new_pkt, ldns_pkt_tsig(pkt)); - /* todo: edns? */ + /* todo: edns? jelte?? */ ldns_rr_list_deep_free(new_pkt->_question); ldns_rr_list_deep_free(new_pkt->_answer); ldns_rr_list_deep_free(new_pkt->_authority);