]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/x509/x509_lu.c
Add NULL checks from master
[thirdparty/openssl.git] / crypto / x509 / x509_lu.c
index a910636f823d03902c403d80a050d96ba86a5b98..8415d1d8b353213173d7a0bad5778a2355b9c7f0 100644 (file)
@@ -216,6 +216,8 @@ X509_STORE *X509_STORE_new(void)
 
 static void cleanup(X509_OBJECT *a)
 {
+    if (!a)
+        return;
     if (a->type == X509_LU_X509) {
         X509_free(a->data.x509);
     } else if (a->type == X509_LU_CRL) {