提交 28a00bcd 编写于 作者: D Dr. Stephen Henson

Check public key is not NULL.

CVE-2015-0288
PR#3708
Reviewed-by: NMatt Caswell <matt@openssl.org>
上级 437b14b5
......@@ -92,6 +92,8 @@ X509_REQ *X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md)
goto err;
pktmp = X509_get_pubkey(x);
if (pktmp == NULL)
goto err;
i = X509_REQ_set_pubkey(ret, pktmp);
EVP_PKEY_free(pktmp);
if (!i)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册