Hold the flag_lock when calling child callbacks
authorMatt Caswell <matt@openssl.org>
Tue, 9 Nov 2021 16:23:34 +0000 (16:23 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 12 Nov 2021 17:16:14 +0000 (17:16 +0000)
commitaddbd7c9d784e1cb630d43487b0572e867bfc86d
tree2dd958e061a291a062280ec38088ea668cd01065
parent4aced11785f2e54875ad56f30c05bdee02b6e4e2
Hold the flag_lock when calling child callbacks

Not holding the flag lock when creating/removing child providers can
confuse the activation counts if the parent provider is loaded/unloaded
at the same time.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16980)
crypto/provider_core.c