summaryrefslogtreecommitdiff
path: root/src/mod_cgi.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2022-02-18 02:34:38 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2022-02-19 03:52:17 -0500
commitcc65a21e1224c9e732c882cbbe01fcb708527d1b (patch)
tree53eb467be2b36d3f45fc43115a3d00e4a3cb0a76 /src/mod_cgi.c
parent29bff8a516759fd039571d96a9c03eaa24b0cace (diff)
downloadlighttpd-git-cc65a21e1224c9e732c882cbbe01fcb708527d1b.tar.gz
[mod_cgi] cgi.local-redir request_reset thru fnptr
cgi.local-redir call plugins_request_reset through fn ptr (isolate plugins_* funcs to server; should not be called directly from plugins/modules)
Diffstat (limited to 'src/mod_cgi.c')
-rw-r--r--src/mod_cgi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_cgi.c b/src/mod_cgi.c
index 4a495e8a..c4cb5b81 100644
--- a/src/mod_cgi.c
+++ b/src/mod_cgi.c
@@ -555,7 +555,7 @@ static handler_t cgi_local_redir(request_st * const r, handler_ctx * const hctx)
buffer_clear(hctx->response);
chunk_buffer_yield(hctx->response);
http_response_reset(r); /*(includes r->http_status = 0)*/
- plugins_call_handle_request_reset(r);
+ r->con->srv->plugins_request_reset(r);
/*cgi_connection_close(hctx);*//*(already cleaned up and hctx is now invalid)*/
return HANDLER_COMEBACK;
}