Skip to content

src: fix tls certificate root store data race

Rodrigo Muino Tomonari requested to merge github/fork/bnoordhuis/fix45743 into main

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: https://github.com/nodejs/node/issues/45743

Merge request reports

Loading