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.

(cherry picked from commit aaaacaaf4b558f4e0206b98c787cdcef773b1d76)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 111e8590c16b0295d17f059d8193f2653d16d470)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 6e542eb9cee3c2bd41b530764679df5ffafa40f6)
Signed-off-by: Willy Tarreau <w@1wt.eu>
diff --git a/src/fcgi-app.c b/src/fcgi-app.c
index 16c3c81..838d7ac 100644
--- a/src/fcgi-app.c
+++ b/src/fcgi-app.c
@@ -615,6 +615,8 @@
 	if (!fcgi_conf)
 		goto err;
 	fcgi_conf->name = strdup(args[1]);
+	if (!fcgi_conf->name)
+		goto err;
 	LIST_INIT(&fcgi_conf->param_rules);
 	LIST_INIT(&fcgi_conf->hdr_rules);