diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2020-01-08 23:53:06 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-07-08 19:54:29 -0400 |
commit | 100dfaa3f3785704d2df264e27ab698e27272687 (patch) | |
tree | 06708f873e07c837ef35b5d85533993f043037d0 /src/mod_cgi.c | |
parent | 8131e4396dcec676d8e7b681cee10003f1c4fefd (diff) | |
download | lighttpd-git-100dfaa3f3785704d2df264e27ab698e27272687.tar.gz |
[core] move plugin_ctx into (request_st *)
NB: in the future, a separate plugin_ctx may be needed for
connection-level plugins to keep state across multiple requests
Diffstat (limited to 'src/mod_cgi.c')
-rw-r--r-- | src/mod_cgi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mod_cgi.c b/src/mod_cgi.c index b1e4042a..d973a7c2 100644 --- a/src/mod_cgi.c +++ b/src/mod_cgi.c @@ -329,7 +329,7 @@ static void cgi_connection_close(connection *con, handler_ctx *hctx) { cgi_pid_kill(p, hctx->pid); } - con->plugin_ctx[p->id] = NULL; + con->request.plugin_ctx[p->id] = NULL; cgi_handler_ctx_free(hctx); @@ -341,7 +341,7 @@ static void cgi_connection_close(connection *con, handler_ctx *hctx) { static handler_t cgi_connection_close_callback(connection *con, void *p_d) { plugin_data *p = p_d; - handler_ctx *hctx = con->plugin_ctx[p->id]; + handler_ctx *hctx = con->request.plugin_ctx[p->id]; if (hctx) cgi_connection_close(con, hctx); return HANDLER_GO_ON; @@ -914,7 +914,7 @@ URIHANDLER_FUNC(cgi_is_handled) { hctx->opts.xsendfile_docroot = hctx->conf.xsendfile_docroot; hctx->opts.pdata = hctx; hctx->opts.headers = cgi_response_headers; - con->plugin_ctx[p->id] = hctx; + con->request.plugin_ctx[p->id] = hctx; con->mode = p->id; } @@ -928,7 +928,7 @@ URIHANDLER_FUNC(cgi_is_handled) { */ SUBREQUEST_FUNC(mod_cgi_handle_subrequest) { plugin_data * const p = p_d; - handler_ctx * const hctx = con->plugin_ctx[p->id]; + handler_ctx * const hctx = con->request.plugin_ctx[p->id]; if (con->mode != p->id) return HANDLER_GO_ON; if (NULL == hctx) return HANDLER_GO_ON; |