]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: ssl: remove uneeded check in crtlist_parse_file
authorWilliam Dauchy <w.dauchy@criteo.com>
Fri, 2 Oct 2020 13:27:20 +0000 (15:27 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 2 Oct 2020 13:43:01 +0000 (15:43 +0200)
this condition is never true as we either break or goto error, so those
two lines could be removed in the current state of the code.

this is fixing github issue #862

Signed-off-by: William Dauchy <w.dauchy@criteo.com>
src/ssl_crtlist.c

index 3c94bcf99e07eae9c3ee4924f8cab02ea56aea4d..3f09c86738e0624a14e177e09b2ab37c50347315 100644 (file)
@@ -599,9 +599,6 @@ int crtlist_parse_file(char *file, struct bind_conf *bind_conf, struct proxy *cu
                                }
                        }
                }
-               if (cfgerr & ERR_CODE)
-                       goto error;
-
                entry = NULL;
        }