Fix error handling at openssl_strerror_r