mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 22:01:31 +02:00
BUG/MINOR: fcgi-app: handle a possible strdup() failure
This defect was found by the coccinelle script "unchecked-strdup.cocci". It can be backported to 2.2.
This commit is contained in:
parent
661e1db826
commit
aaaacaaf4b
@ -606,6 +606,8 @@ static int proxy_parse_use_fcgi_app(char **args, int section, struct proxy *curp
|
|||||||
if (!fcgi_conf)
|
if (!fcgi_conf)
|
||||||
goto err;
|
goto err;
|
||||||
fcgi_conf->name = strdup(args[1]);
|
fcgi_conf->name = strdup(args[1]);
|
||||||
|
if (!fcgi_conf->name)
|
||||||
|
goto err;
|
||||||
LIST_INIT(&fcgi_conf->param_rules);
|
LIST_INIT(&fcgi_conf->param_rules);
|
||||||
LIST_INIT(&fcgi_conf->hdr_rules);
|
LIST_INIT(&fcgi_conf->hdr_rules);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user