]> git.ipfire.org Git - thirdparty/openssl.git/commit
Complete the cleanup of an algorithm in OSSL_METHOD_STORE
authorRichard Levitte <levitte@openssl.org>
Mon, 25 Apr 2022 05:22:27 +0000 (07:22 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 5 May 2022 13:06:11 +0000 (15:06 +0200)
commit03454ba2a234197c961920f1bac37cc9f4cf3f54
tree555b5b6dc0ec58446a4ef26ae579ea84b333452d
parent2e4d0677ea858c619a33235265dbee19520a9d35
Complete the cleanup of an algorithm in OSSL_METHOD_STORE

The `alg_cleanup` didn't properly clear the OPENSSL_SA leaf that it
had just freed the contents of.  Fortunately, `ossl_sa_ALGORITHM_doall_arg()`
allows us to pass the store pointer itself as an extra argument, which
allows a modified `alg_cleanup` to complete the job.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18151)
crypto/property/property.c