Fix crash when using OpenSSL 1.1.1c Fixes: #12763 (cherry picked from commit ab8cd6c9) (cherry picked from commit 8027e5ca)