Fixed limit_conn_log_level/limit_req_log_level inheritance.

The directives did not work if there were no limit_conn/limit_req specified on
the same level.
This commit is contained in:
Valentin Bartenev 2011-12-25 19:32:31 +00:00
parent 197312f3a0
commit 39f01e526f
2 changed files with 2 additions and 2 deletions

View File

@ -483,7 +483,7 @@ ngx_http_limit_conn_merge_conf(ngx_conf_t *cf, void *parent, void *child)
ngx_http_limit_conn_conf_t *conf = child;
if (conf->limits.elts == NULL) {
*conf = *prev;
conf->limits = prev->limits;
}
ngx_conf_merge_uint_value(conf->log_level, prev->log_level, NGX_LOG_ERR);

View File

@ -569,7 +569,7 @@ ngx_http_limit_req_merge_conf(ngx_conf_t *cf, void *parent, void *child)
ngx_http_limit_req_conf_t *conf = child;
if (conf->shm_zone == NULL) {
*conf = *prev;
conf->shm_zone = prev->shm_zone;
}
ngx_conf_merge_uint_value(conf->limit_log_level, prev->limit_log_level,