]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
only the todo in dnssec.c are left
authorMiek Gieben <miekg@NLnetLabs.nl>
Thu, 8 Sep 2005 13:16:44 +0000 (13:16 +0000)
committerMiek Gieben <miekg@NLnetLabs.nl>
Thu, 8 Sep 2005 13:16:44 +0000 (13:16 +0000)
packet.c

index ada036cdff104dc72252eca8d2ee2c6506244daf..db57b9656a418ed59497c252727f676954c72f43 100644 (file)
--- 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);