aboutsummaryrefslogtreecommitdiff
path: root/ex.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-05-15 10:31:43 +0000
committerOmar Polo <op@omarpolo.com>2021-05-15 10:31:43 +0000
commit1feaf2a618ee1c4771fee80ced7acf31fe40fdae (patch)
treea5953a40af0f3c434a788248aacc0ede3b718818 /ex.c
parent91b9f2a8f9d39f2fb842c33049d966777027e5f4 (diff)
use the correct document root
pass the correct loc_off to the executor, so the various variables that depends on the matched location (like DOCUMENT_ROOT) are computed correctly.
Diffstat (limited to 'ex.c')
-rw-r--r--ex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ex.c b/ex.c
index 0dcad61..39eedec 100644
--- a/ex.c
+++ b/ex.c
@@ -290,7 +290,7 @@ handle_imsg_cgi_req(struct imsgbuf *ibuf, struct imsg *imsg, size_t datalen)
if ((h = host_nth(req.host_off)) == NULL)
abort();
- if ((l = loc_nth(h, req.host_off)) == NULL)
+ if ((l = loc_nth(h, req.loc_off)) == NULL)
abort();
fd = launch_cgi(&iri, &req, h, l);