]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
bugfix #633: ldns_pkt_clone const parameter
authorWillem Toorop <willem@nlnetlabs.nl>
Mon, 26 Jan 2015 13:38:12 +0000 (14:38 +0100)
committerWillem Toorop <willem@nlnetlabs.nl>
Mon, 26 Jan 2015 13:38:12 +0000 (14:38 +0100)
Thanks Jakop Petsovits

Changelog
ldns/packet.h
packet.c

index e07d039ed775ec11c3251d39ccf4a5b6feabbdb0..b3201dfa1d7bbb3d0ae0006ba81d9784c02eb07e 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -46,6 +46,8 @@ TBD
          in sync with the usage text, and don't alter the ldns_resolver passed
          to ldns_update_soa_zone_mname().  Created a ldns_resolver_clone()
          function in the process.  Thanks Nicholas Riley.
+       * bugfix #633: ldns_pkt_clone() parameter isn't const.
+         Thanks Jakop Petsovits
 
 1.6.17 2014-01-10
        * Fix ldns_dnssec_zone_new_frm_fp_l to allow the last parsed line of a
index 2732e94fcc14d2b9fdf3de6d2c8337beda2e3b22..e66aa34e061f3d039a1736f2eeffdbc2351f1db7 100644 (file)
@@ -811,7 +811,7 @@ ldns_pkt *ldns_pkt_ixfr_request_new(ldns_rdf *rr_name, ldns_rr_class rr_class, u
  * \param[in] pkt the packet to clone
  * \return ldns_pkt* pointer to the new packet
  */
-ldns_pkt *ldns_pkt_clone(ldns_pkt *pkt);
+ldns_pkt *ldns_pkt_clone(const ldns_pkt *pkt);
 
 /**
  * directly set the additional section
index 3e26a6fe32a1eb29f2a69b33592af4c98fc97b40..62bfd079cc8b3e7ccc1e9cc4872ad52f810b2d7d 100644 (file)
--- a/packet.c
+++ b/packet.c
@@ -1105,7 +1105,7 @@ ldns_pkt_reply_type(ldns_pkt *p)
 }
 
 ldns_pkt *
-ldns_pkt_clone(ldns_pkt *pkt)
+ldns_pkt_clone(const ldns_pkt *pkt)
 {
        ldns_pkt *new_pkt;