]> git.ipfire.org Git - thirdparty/openssl.git/commit
Avoid loading of a dynamic engine twice
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 19 Nov 2021 10:33:34 +0000 (11:33 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 23 Nov 2021 05:12:32 +0000 (06:12 +0100)
commit9b06ebb1edfddffea083ba36090af7eb7cad207b
treeb24944686ce61eab0ca8855f24879171044f90e0
parentc28bcc507be1b035237892181bbbb28383c3f2be
Avoid loading of a dynamic engine twice

Use the address of the bind function as a DYNAMIC_ID,
since the true name of the engine is not known
before the bind function returns,
but invoking the bind function before the engine
is unloaded results in memory corruption.

Fixes #17023

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/17073)

(cherry picked from commit e2571e02d2b0cd83ed1c79d384fe941f27e603c0)
crypto/engine/eng_dyn.c
crypto/engine/eng_lib.c
crypto/engine/eng_list.c
crypto/engine/eng_local.h