From 7f5b6f0f19fd30356807a0010053c28a3a66b870 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Fri, 14 Jan 2000 18:41:28 +0000 Subject: [PATCH] In EVP_PKEY_assign[_...], return 0 for an error when they "key" is NULL. --- crypto/evp/p_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c index 94c4047a5e..5dcbbc84a5 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 -- 2.34.1