mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
In EVP_PKEY_assign[_...], return 0 for an error when they
"key" is NULL.
This commit is contained in:
parent
0c50e02b30
commit
7f5b6f0f19
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user