提交 7f5b6f0f 编写于 作者: B Bodo Möller

In EVP_PKEY_assign[_...], return 0 for an error when they

"key" is NULL.
上级 0c50e02b
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册