diff options
author | Ben Laurie <ben@openssl.org> | 2001-08-03 19:00:43 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2001-08-03 19:00:43 +0000 |
commit | 92dad6cc840cb2402b61fb4281deafd1179efe04 (patch) | |
tree | 3ece4b68413603c3cf059e85c0168db8d92e91a0 | |
parent | 61454a9f8c882012b6e8afe91ef00b1236e3cb40 (diff) | |
download | openssl-92dad6cc840cb2402b61fb4281deafd1179efe04.tar.gz |
Reinstate accidentally deleted code.
-rw-r--r-- | crypto/evp/p_lib.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 |