We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 437b14b commit 28a00bcCopy full SHA for 28a00bc
crypto/x509/x509_req.c
@@ -92,6 +92,8 @@ X509_REQ *X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md)
92
goto err;
93
94
pktmp = X509_get_pubkey(x);
95
+ if (pktmp == NULL)
96
+ goto err;
97
i = X509_REQ_set_pubkey(ret, pktmp);
98
EVP_PKEY_free(pktmp);
99
if (!i)
0 commit comments