diff options
author | Matt Caswell <matt@openssl.org> | 2021-01-26 15:23:19 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2021-02-02 12:21:21 +0000 |
commit | b233ea82765e80038e4884564153f9c8543d9396 (patch) | |
tree | 85bc23683d1165916623957b68f3da16c83b8cba /crypto | |
parent | cd4e6a351201270cd2769e1e2af7e9fb875a3f80 (diff) |
Avoid races by caching exported ciphers in the init function
TSAN was reporting a race of the exported ciphers cache that we create in
the default and fips providers. This was because we cached it in the query
function rather than the init function, so this would cause a race if multiple
threads queried at the same time. In practice it probably wouldn't make much
difference since different threads should come up with the same answer.
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13987)
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions