]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: ssl: remove dead code in cfg_parse_crtstore()
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 15 Apr 2024 07:04:37 +0000 (09:04 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 15 Apr 2024 07:05:27 +0000 (09:05 +0200)
Remove dead code reported in #2531.

src/ssl_ckch.c

index 0ac5b5ecc9ca5a4dc1d61f1a4060afa55f05ce84..88185cb210da2fb9e97c03cccd4c862566f5dcaf 100644 (file)
@@ -4207,12 +4207,6 @@ out:
                err_code |= ERR_ABORT;
        free(errmsg);
        return err_code;
-
-alloc_error:
-       ha_alert("parsing [%s:%d]: out of memory.\n", file, linenum);
-       err_code |= ERR_ALERT | ERR_ABORT;
-       goto out;
-
 }
 
 REGISTER_CONFIG_SECTION("crt-store", cfg_parse_crtstore, NULL);