summaryrefslogtreecommitdiff
path: root/src/mod_wstunnel.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2020-01-08 23:53:06 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2020-07-08 19:54:29 -0400
commit100dfaa3f3785704d2df264e27ab698e27272687 (patch)
tree06708f873e07c837ef35b5d85533993f043037d0 /src/mod_wstunnel.c
parent8131e4396dcec676d8e7b681cee10003f1c4fefd (diff)
downloadlighttpd-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_wstunnel.c')
-rw-r--r--src/mod_wstunnel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_wstunnel.c b/src/mod_wstunnel.c
index 7064188a..b1ac1105 100644
--- a/src/mod_wstunnel.c
+++ b/src/mod_wstunnel.c
@@ -479,7 +479,7 @@ static void wstunnel_handler_ctx_free(void *gwhctx) {
}
static handler_t wstunnel_handler_setup (connection *con, plugin_data *p) {
- handler_ctx *hctx = con->plugin_ctx[p->id];
+ handler_ctx *hctx = con->request.plugin_ctx[p->id];
int hybivers;
hctx->srv = con->srv;
hctx->errh = con->conf.errh;/*(for mod_wstunnel-specific DEBUG_* macros)*/
@@ -595,7 +595,7 @@ TRIGGER_FUNC(mod_wstunnel_handle_trigger) {
for (uint32_t i = 0; i < srv->conns.used; ++i) {
connection *con = srv->conns.ptr[i];
- handler_ctx *hctx = con->plugin_ctx[p->id];
+ handler_ctx *hctx = con->request.plugin_ctx[p->id];
if (NULL == hctx || con->mode != p->id)
continue;