]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Changelog entry for memory leaks bugfix/verify-zone-memory-leaks 268/head
authorWillem Toorop <willem@nlnetlabs.nl>
Tue, 28 Jan 2025 13:57:14 +0000 (14:57 +0100)
committerWillem Toorop <willem@nlnetlabs.nl>
Tue, 28 Jan 2025 13:57:14 +0000 (14:57 +0100)
Changelog
ldns/dnssec_zone.h

index 41e19e4ebf8c1e648a781d0f981cb882f2867a03..e350bae7ccf49f295ca682b60908f2b5eb3bc237 100644 (file)
--- a/Changelog
+++ b/Changelog
          Follows the long string unquoted syntax from RFC8659, section 4.1.1.
        * Fix #266: ldns-read-zone -u fails if a type is the only type in a
          window and the type modulo 256 is equal to zero.
+       * Fix memory leak when trying to read zones that have equal RRs.
+         the ldns_dnssec_*_add_rr() functions now return LDNS_STATUS_EQUAL_RR
+         when an already existing RR is tried to be added. This is a API
+         change, hence this also bumps the version to 1.9.0
 
 1.8.4  2024-07-19
        * Fix building documentation in build directory.
index e1c6975e27b0b229b6538366ed9227cf9ef0f49b..335f57a3c4a628f7722086ac6fe1b3685c614161 100644 (file)
@@ -315,7 +315,6 @@ int ldns_dnssec_name_cmp(const void *a, const void *b);
  *
  * \param[in] name The ldns_dnssec_name to add the RR to
  * \param[in] rr The RR to add
- * \return LDNS_STATUS_OK on success, error code otherwise
  * \return LDNS_STATUS_OK on success and LDNS_STATUS_EQUAL_ERR when and
  *         RR with equal ownername, class, type and rdata already exists,
  *         and an error code otherwise
@@ -420,7 +419,9 @@ void ldns_dnssec_zone_deep_free(ldns_dnssec_zone *zone);
  *
  * \param[in] zone the zone to add the RR to
  * \param[in] rr The RR to add
- * \return LDNS_STATUS_OK on success, an error code otherwise
+ * \return LDNS_STATUS_OK on success and LDNS_STATUS_EQUAL_ERR when and
+ *         RR with equal ownername, class, type and rdata already exists,
+ *         and an error code otherwise
  */
 ldns_status ldns_dnssec_zone_add_rr(ldns_dnssec_zone *zone,
                                                         ldns_rr *rr);