From: Viktor Dukhovni <openssl-users@dukhovni.org>
Date: Thu, 14 Jan 2016 17:23:35 +0000 (-0500)
Subject: Always initialize X509_STORE_CTX get_crl pointer
X-Git-Tag: OpenSSL_1_1_0-pre3~530
X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=311f27852a18fb9c10f0c1283b639f12eea06de2;p=oweals%2Fopenssl.git

Always initialize X509_STORE_CTX get_crl pointer

Reviewed-by: Rich Salz <rsalz@openssl.org>
---

diff --git a/crypto/x509/x509_vfy.c b/crypto/x509/x509_vfy.c
index 73339f3fd4..c395acc012 100644
--- a/crypto/x509/x509_vfy.c
+++ b/crypto/x509/x509_vfy.c
@@ -2150,6 +2150,8 @@ int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509,
 
     if (store && store->get_crl)
         ctx->get_crl = store->get_crl;
+    else
+        ctx->get_crl = NULL;
 
     if (store && store->check_crl)
         ctx->check_crl = store->check_crl;