]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: fcgi-app: Remove useless test on fcgi_conf pointer
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 18 Sep 2019 09:16:02 +0000 (11:16 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 18 Sep 2019 09:20:55 +0000 (11:20 +0200)
fcgi_conf was already tested after allocation. No need to test it again.
This patch fixes the isssue #285.

src/fcgi-app.c

index 4db296feba3c82ad90d7c1b318aa45b5d0336e41..aeda8216b073647af0cdedac5def4d04f0e55324 100644 (file)
@@ -620,8 +620,6 @@ static int proxy_parse_use_fcgi_app(char **args, int section, struct proxy *curp
        fcgi_conf->name = strdup(args[1]);
        LIST_INIT(&fcgi_conf->param_rules);
        LIST_INIT(&fcgi_conf->hdr_rules);
-       if (!fcgi_conf)
-               goto err;
 
        /* Register the filter */
        fconf = calloc(1, sizeof(*fconf));