aboutsummaryrefslogtreecommitdiff
path: root/gmid.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-07-19 11:15:44 +0000
committerOmar Polo <op@omarpolo.com>2021-07-19 11:15:44 +0000
commit735336b21edbca50b1650df091ed2dad47f96c27 (patch)
treed6723f14ee206ba4d3961e2151f0c8b207bc62ab /gmid.c
parentabc8801d6064304c627cd75ed1f8c585d51346de (diff)
unbreak configless mode
An un-initialized field in the configless code path leads to a crash on the first request.
Diffstat (limited to 'gmid.c')
-rw-r--r--gmid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gmid.c b/gmid.c
index 5d6e1cc..01a1684 100644
--- a/gmid.c
+++ b/gmid.c
@@ -524,6 +524,7 @@ setup_configless(int argc, char **argv, const char *cgi)
TAILQ_INSERT_HEAD(&hosts, host, vhosts);
loc = xcalloc(1, sizeof(*loc));
+ loc->fcgi = -1;
TAILQ_INSERT_HEAD(&host->locations, loc, locations);
serve(argc, argv, NULL);