aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_process_cycle.c
diff options
context:
space:
mode:
authorCiel Zhao <i@ciel.dev>2022-11-21 17:01:34 +0300
committerCiel Zhao <i@ciel.dev>2022-11-21 17:01:34 +0300
commit053e40e5d45ac76ea29b803840222461f501f1e3 (patch)
tree4fc9a2acf46d033943d1fabf4b911a76abbfd4b4 /src/os/unix/ngx_process_cycle.c
parent67e2a6916170f126a078bf7499a9a02c994e2f6d (diff)
downloadnginx-053e40e5d45ac76ea29b803840222461f501f1e3.tar.gz
nginx-053e40e5d45ac76ea29b803840222461f501f1e3.zip
SSI: handling of subrequests from other modules (ticket #1263).
As the SSI parser always uses the context from the main request for storing variables and blocks, that context should always exist for subrequests using SSI, even though the main request does not necessarily have SSI enabled. However, `ngx_http_get_module_ctx(r->main, ...)` is getting NULL in such cases, resulting in the worker crashing SIGSEGV when accessing its attributes. This patch links the first initialized context to the main request, and upgrades it only when main context is initialized.
Diffstat (limited to 'src/os/unix/ngx_process_cycle.c')
0 files changed, 0 insertions, 0 deletions