Blame SOURCES/openssl-1.0.2a-x509.patch

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