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