Blame SOURCES/openssl-1.0.2a-x509.patch

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