Blame SOURCES/openssl-1.0.1e-cve-2015-0288.patch

96beb5
diff -up openssl-1.0.1e/crypto/x509/x509_req.c.req-null-deref openssl-1.0.1e/crypto/x509/x509_req.c
96beb5
--- openssl-1.0.1e/crypto/x509/x509_req.c.req-null-deref	2013-02-11 16:26:04.000000000 +0100
96beb5
+++ openssl-1.0.1e/crypto/x509/x509_req.c	2015-03-18 18:34:35.732448017 +0100
96beb5
@@ -92,6 +92,8 @@ X509_REQ *X509_to_X509_REQ(X509 *x, EVP_
96beb5
 		goto err;
96beb5
 
96beb5
 	pktmp = X509_get_pubkey(x);
96beb5
+	if (pktmp == NULL)
96beb5
+		goto err;
96beb5
 	i=X509_REQ_set_pubkey(ret,pktmp);
96beb5
 	EVP_PKEY_free(pktmp);
96beb5
 	if (!i) goto err;