Fix bug that could lead to an assertion failure in libcrypto when multiple