# HG changeset patch # User Sergey Kandaurov # Date 1429538081 -10800 # Node ID 3b7a60371a9a696b63bc6ce46a308cb1a342624c # Parent 48b3d5ddfb031e131491844af507a262bc723d36 Limit req: removed check for unknown limit_req_zone. With 48b3d5ddfb03, it's possible to specify limit_req_zone after limit_req. diff --git a/src/http/modules/ngx_http_limit_req_module.c b/src/http/modules/ngx_http_limit_req_module.c --- 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_c 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) {