Blame SOURCES/openssl-1.0.2a-x509.patch

aa8173
diff -up openssl-1.0.2a/crypto/x509/by_file.c.x509 openssl-1.0.2a/crypto/x509/by_file.c
aa8173
--- openssl-1.0.2a/crypto/x509/by_file.c.x509	2015-04-09 18:16:29.365456157 +0200
aa8173
+++ openssl-1.0.2a/crypto/x509/by_file.c	2015-04-09 18:16:26.398387618 +0200
aa8173
@@ -152,9 +152,12 @@ int X509_load_cert_file(X509_LOOKUP *ctx
aa8173
                 }
aa8173
             }
aa8173
             i = X509_STORE_add_cert(ctx->store_ctx, x);
aa8173
-            if (!i)
aa8173
-                goto err;
aa8173
-            count++;
aa8173
+            /* ignore any problems with current certificate 
aa8173
+               and continue with the next one */
aa8173
+            if (i)
aa8173
+                count++;
aa8173
+            else
aa8173
+                ERR_clear_error();
aa8173
             X509_free(x);
aa8173
             x = NULL;
aa8173
         }
aa8173
@@ -167,7 +170,7 @@ int X509_load_cert_file(X509_LOOKUP *ctx
aa8173
         }
aa8173
         i = X509_STORE_add_cert(ctx->store_ctx, x);
aa8173
         if (!i)
aa8173
-            goto err;
aa8173
+            ERR_clear_error();
aa8173
         ret = i;
aa8173
     } else {
aa8173
         X509err(X509_F_X509_LOAD_CERT_FILE, X509_R_BAD_X509_FILETYPE);