Fix broken loading of client CAs
[openssl.git] / ssl / ssl_cert.c
index c6e2d09eb7f3a973747bab92794ec1206cf79b2e..2a07ee6910a6b9877c48ae3ed8cae94c0c88e138 100644 (file)
@@ -605,8 +605,7 @@ STACK_OF(X509_NAME) *SSL_load_client_CA_file(const char *file)
             X509_NAME_free(xn);
             xn = NULL;
         } else {
-            if (!lh_X509_NAME_insert(name_hash, xn))
-                goto err;
+            lh_X509_NAME_insert(name_hash, xn);
             if (!sk_X509_NAME_push(ret, xn))
                 goto err;
         }