]> git.kaiwu.me - nginx.git/commit
SSI: return NGX_ERROR when timefmt memory allocation failed.
authorSergey Kandaurov <pluknet@nginx.com>
Wed, 7 Jun 2017 12:21:42 +0000 (15:21 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Wed, 7 Jun 2017 12:21:42 +0000 (15:21 +0300)
commitdec513d6e47aa883e2dbeaeb70c122e37b9abe70
tree1e2b7908ab89e682ae5808eedd881175d9df7e2f
parent51a4a414ca051c779ac90a566bd50c0a1ecd6a40
SSI: return NGX_ERROR when timefmt memory allocation failed.

Previously, when using NGX_HTTP_SSI_ERROR, error was ignored in ssi processing,
thus timefmt could be accessed later in ngx_http_ssi_date_gmt_local_variable()
as part of "set" handler, or NULL format pointer could be passed to strftime().
src/http/modules/ngx_http_ssi_filter_module.c