]> git.kaiwu.me - nginx.git/commit
Limit req: improved error handling when parsing "zone" parameter of
authorValentin Bartenev <vbart@nginx.com>
Mon, 30 Jan 2012 09:26:08 +0000 (09:26 +0000)
committerValentin Bartenev <vbart@nginx.com>
Mon, 30 Jan 2012 09:26:08 +0000 (09:26 +0000)
commit5f5205ba87ff44fabe3931061a8d3014fdac4475
treef684b234557a10215b7314a2fc665fbd1acfaa0e
parentd4dbf6ad59b2e59b9286763eec3dce273180a906
Limit req: improved error handling when parsing "zone" parameter of
"limit_req_zone" directive; minimum size of zone is increased.

Previously an unsigned variable was used to keep the return value of
ngx_parse_size() function, which led to an incorrect zone size if NGX_ERROR
was returned.

The new code has been taken from the "limit_conn_zone" directive.
src/http/modules/ngx_http_limit_req_module.c