src: fix tls certificate root store data race · nodejs/node@2f898f2 · GitHub
Skip to content

Commit 2f898f2

Browse files
bnoordhuisRafaelGSS
authored andcommitted
src: fix tls certificate root store data race
OpenSSL internally synchronizes access to the X509_STORE. Creation of the global root store in Node was not properly synchronized, however, introducing the possibility of data races when multiple threads try to create it concurrently. This commit coincidentally removes the last call to the thread-unsafe ERR_error_string() function. Fixes: #45743 PR-URL: #45767 Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent cf30fca commit 2f898f2

1 file changed

Lines changed: 23 additions & 29 deletions

File tree

src/crypto/crypto_context.cc

Lines changed: 23 additions & 29 deletions

0 commit comments

Comments
 (0)