comparison src/http/modules/ngx_http_limit_req_module.c @ 6117:3b7a60371a9a

Limit req: removed check for unknown limit_req_zone. With 48b3d5ddfb03, it's possible to specify limit_req_zone after limit_req.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 20 Apr 2015 16:54:41 +0300
parents 102f85699420
children 7a6456398fc3
comparison
equal deleted inserted replaced
6116:48b3d5ddfb03 6117:3b7a60371a9a
917 "\"%V\" must have \"zone\" parameter", 917 "\"%V\" must have \"zone\" parameter",
918 &cmd->name); 918 &cmd->name);
919 return NGX_CONF_ERROR; 919 return NGX_CONF_ERROR;
920 } 920 }
921 921
922 if (shm_zone->data == NULL) {
923 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
924 "unknown limit_req_zone \"%V\"",
925 &shm_zone->shm.name);
926 return NGX_CONF_ERROR;
927 }
928
929 limits = lrcf->limits.elts; 922 limits = lrcf->limits.elts;
930 923
931 if (limits == NULL) { 924 if (limits == NULL) {
932 if (ngx_array_init(&lrcf->limits, cf->pool, 1, 925 if (ngx_array_init(&lrcf->limits, cf->pool, 1,
933 sizeof(ngx_http_limit_req_limit_t)) 926 sizeof(ngx_http_limit_req_limit_t))