diff options
author | Bodo Möller <bodo@openssl.org> | 2000-01-14 18:41:28 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-01-14 18:41:28 +0000 |
commit | 7f5b6f0f19fd30356807a0010053c28a3a66b870 (patch) | |
tree | 3bea0f1656e6f6239280d061264cb343af3ab7c1 /crypto/evp/p_lib.c | |
parent | 0c50e02b30de26a9a5027a1065db7e07fd91469a (diff) | |
download | openssl-7f5b6f0f19fd30356807a0010053c28a3a66b870.zip openssl-7f5b6f0f19fd30356807a0010053c28a3a66b870.tar.gz openssl-7f5b6f0f19fd30356807a0010053c28a3a66b870.tar.bz2 |
In EVP_PKEY_assign[_...], return 0 for an error when they
"key" is NULL.
Diffstat (limited to 'crypto/evp/p_lib.c')
-rw-r--r-- | crypto/evp/p_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c index 94c4047..5dcbbc8 100644 --- a/crypto/evp/p_lib.c +++ b/crypto/evp/p_lib.c @@ -202,7 +202,7 @@ int EVP_PKEY_assign(EVP_PKEY *pkey, int type, char *key) pkey->type=EVP_PKEY_type(type); pkey->save_type=type; pkey->pkey.ptr=key; - return(1); + return(key != NULL); } #ifndef NO_RSA |