aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_access_handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/modules/ngx_http_access_handler.c')
-rw-r--r--src/http/modules/ngx_http_access_handler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_access_handler.c b/src/http/modules/ngx_http_access_handler.c
index 832f9c2ed..285570f23 100644
--- a/src/http/modules/ngx_http_access_handler.c
+++ b/src/http/modules/ngx_http_access_handler.c
@@ -127,7 +127,7 @@ static char *ngx_http_access_rule(ngx_conf_t *cf, ngx_command_t *cmd,
ngx_http_access_rule_t *rule;
if (alcf->rules == NULL) {
- alcf->rules = ngx_create_array(cf->pool, 5,
+ alcf->rules = ngx_create_array(cf->pool, 4,
sizeof(ngx_http_access_rule_t));
if (alcf->rules == NULL) {
return NGX_CONF_ERROR;