From: Ben Laurie Date: Fri, 3 Aug 2001 19:00:43 +0000 (+0000) Subject: Reinstate accidentally deleted code. X-Git-Tag: OpenSSL_0_9_6c~147^2~24 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=92dad6cc840cb2402b61fb4281deafd1179efe04 Reinstate accidentally deleted code. --- diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c index 53780726f3..0c2c9a1cdd 100644 --- a/crypto/evp/p_lib.c +++ b/crypto/evp/p_lib.c @@ -81,7 +81,9 @@ int EVP_PKEY_bits(EVP_PKEY *pkey) int EVP_PKEY_size(EVP_PKEY *pkey) { -#ifndef OPENSSL_NO_RSA + if (pkey == NULL) + return(0); + #ifndef OPENSSL_NO_RSA if (pkey->type == EVP_PKEY_RSA) return(RSA_size(pkey->pkey.rsa)); else