Fix crash when using OpenSSL 1.1.1c Fixes: #12763
mentioned in commit b27c8f70
mentioned in commit 8027e5ca