aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_limit_req_module.c
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2015-04-20 16:54:41 +0300
committerSergey Kandaurov <pluknet@nginx.com>2015-04-20 16:54:41 +0300
commit1ff5515e70eab7d580016be710dc8ac5af0ba4fd (patch)
tree26335867017369719ee1e5b9ff879a7c05131d64 /src/http/modules/ngx_http_limit_req_module.c
parent06ff11798612f7b9e972885fcfacf0f7b0f172ce (diff)
downloadnginx-1ff5515e70eab7d580016be710dc8ac5af0ba4fd.tar.gz
nginx-1ff5515e70eab7d580016be710dc8ac5af0ba4fd.zip
Limit req: removed check for unknown limit_req_zone.
With 48b3d5ddfb03, it's possible to specify limit_req_zone after limit_req.
Diffstat (limited to 'src/http/modules/ngx_http_limit_req_module.c')
-rw-r--r--src/http/modules/ngx_http_limit_req_module.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/http/modules/ngx_http_limit_req_module.c b/src/http/modules/ngx_http_limit_req_module.c
index 5d5cbe944..9059ac376 100644
--- a/src/http/modules/ngx_http_limit_req_module.c
+++ b/src/http/modules/ngx_http_limit_req_module.c
@@ -919,13 +919,6 @@ ngx_http_limit_req(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
return NGX_CONF_ERROR;
}
- if (shm_zone->data == NULL) {
- ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
- "unknown limit_req_zone \"%V\"",
- &shm_zone->shm.name);
- return NGX_CONF_ERROR;
- }
-
limits = lrcf->limits.elts;
if (limits == NULL) {