]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix memory leaks in DH code
authorAram Sargsyan <aram@isc.org>
Thu, 18 Aug 2022 08:59:09 +0000 (08:59 +0000)
committerMichał Kępień <michal@isc.org>
Thu, 8 Sep 2022 09:20:34 +0000 (11:20 +0200)
commit73d6bbff4e1df583810126fe58eac39bb52bc0d9
treebbf258ab9c939ba3efa790d27fdb4719c55cc5c5
parent3d2cf903907d9fb76c9b85654d297ef7907045ef
Fix memory leaks in DH code

When used with OpenSSL v3.0.0+, the `openssldh_compare()`,
`openssldh_paramcompare()`, and `openssldh_todns()` functions
fail to cleanup the used memory on some error paths.

Use `DST_RET` instead of `return`, when there is memory to be
released before returning from the functions.
lib/dns/openssldh_link.c