]> git.kaiwu.me - nginx.git/commit
Fixed ngx_open_cached_file() error handling.
authorSergey Kandaurov <pluknet@nginx.com>
Tue, 28 Mar 2017 11:21:38 +0000 (14:21 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Tue, 28 Mar 2017 11:21:38 +0000 (14:21 +0300)
commit9ad18e43ac2c9956399018cbb998337943988333
tree5fa775ea2ea833bb65b18714d3eafd3539a784b5
parenteb017e75cf1b1d82179935b0e23d0c3451b33a87
Fixed ngx_open_cached_file() error handling.

If of.err is 0, it means that there was a memory allocation error
and no further logging and/or processing is needed.  The of.failed
string can be only accessed if of.err is not 0.
src/http/modules/ngx_http_index_module.c
src/http/modules/ngx_http_log_module.c
src/http/ngx_http_core_module.c
src/http/ngx_http_script.c
src/stream/ngx_stream_log_module.c