1 |
diff -up openssl-fips-0.9.8e/crypto/x509/x509_req.c.req-null-deref openssl-fips-0.9.8e/crypto/x509/x509_req.c |
2 |
--- openssl-fips-0.9.8e/crypto/x509/x509_req.c.req-null-deref 2006-12-04 20:10:58.000000000 +0100 |
3 |
+++ openssl-fips-0.9.8e/crypto/x509/x509_req.c 2015-04-02 15:16:28.562628363 +0200 |
4 |
@@ -91,6 +91,8 @@ X509_REQ *X509_to_X509_REQ(X509 *x, EVP_ |
5 |
goto err; |
6 |
|
7 |
pktmp = X509_get_pubkey(x); |
8 |
+ if (pktmp == NULL) |
9 |
+ goto err; |
10 |
i=X509_REQ_set_pubkey(ret,pktmp); |
11 |
EVP_PKEY_free(pktmp); |
12 |
if (!i) goto err; |