bind9/bin/dnssec
Mark Andrews 66a3802507 dnssec-checkds: cleanup memory on error paths
Move and give unique names to the dns_db_t, dns_dbnode_t and
dns_dbversion_t pointers, so they have global scope and therefore
are visible to cleanup.  Unique names are not strictly necessary,
as none of the functions involved call each other.

Change free_db to handle NULL pointers and also an optional
(dns_dbversion_t **).

In match_keyset_dsset and free_keytable, ki to be handled
differently to prevent a false positive NULL pointer dereference
warning from scan.

In formatset moved dns_master_styledestroy earlier and freed
buf before calling check_result to prevent memory leak.

In append_new_ds_set freed ds on the default path before
calling check_result to prevent memory leak.

(cherry picked from commit 13f9d29954)
2023-02-09 09:00:28 +11:00
..
.gitignore [master] dnssec-cds 2017-10-05 01:04:18 -07:00
dnssec-cds.c dnssec-checkds: cleanup memory on error paths 2023-02-09 09:00:28 +11:00
dnssec-cds.rst Add internal hyperlinks to See Also section of manual pages 2022-03-14 11:01:32 +01:00
dnssec-dsfromkey.c Replace ISC_NORETURN with C11's noreturn 2022-03-25 08:42:18 +01:00
dnssec-dsfromkey.rst Add internal hyperlinks to See Also section of manual pages 2022-03-14 11:01:32 +01:00
dnssec-importkey.c Replace ISC_NORETURN with C11's noreturn 2022-03-25 08:42:18 +01:00
dnssec-importkey.rst Teach dnssec-settime to read unset times that it writes 2022-05-23 15:15:10 +02:00
dnssec-keyfromlabel.c Update sources to Clang 15 formatting 2022-11-29 09:14:07 +01:00
dnssec-keyfromlabel.rst Clarify dnssec-keyfromlabel -a in man page 2022-06-10 07:55:12 +02:00
dnssec-keygen.c Update sources to Clang 15 formatting 2022-11-29 09:14:07 +01:00
dnssec-keygen.rst Update NSEC3 guidance to match draft-ietf-dnsop-nsec3-guidance-10 2022-06-15 17:57:40 +02:00
dnssec-revoke.c Update sources to Clang 15 formatting 2022-11-29 09:14:07 +01:00
dnssec-revoke.rst Add internal hyperlinks to See Also section of manual pages 2022-03-14 11:01:32 +01:00
dnssec-settime.c Update sources to Clang 15 formatting 2022-11-29 09:14:07 +01:00
dnssec-settime.rst Teach dnssec-settime to read unset times that it writes 2022-05-23 15:15:10 +02:00
dnssec-signzone.c Extend dns_db_allrdatasets to control interation results 2022-12-07 23:59:36 +00:00
dnssec-signzone.rst Update NSEC3 guidance to match draft-ietf-dnsop-nsec3-guidance-10 2022-06-15 17:57:40 +02:00
dnssec-verify.c Replace ISC_NORETURN with C11's noreturn 2022-03-25 08:42:18 +01:00
dnssec-verify.rst Add internal hyperlinks to See Also section of manual pages 2022-03-14 11:01:32 +01:00
dnssectool.c Update sources to Clang 15 formatting 2022-11-29 09:14:07 +01:00
dnssectool.h Replace ISC_NORETURN with C11's noreturn 2022-03-25 08:42:18 +01:00
Makefile.am Move the include Makefile.tests to the bottom of Makefile.am(s) 2021-06-24 15:33:52 +02:00