mirror of
https://github.com/nginx/nginx.git
synced 2026-10-22 03:51:14 +00:00
stop on superfluous closing "}"
This commit is contained in:
parent
b59f369077
commit
83fe66212f
1 changed files with 6 additions and 0 deletions
|
|
@ -145,6 +145,12 @@ ngx_conf_parse(ngx_conf_t *cf, ngx_str_t *filename)
|
|||
}
|
||||
|
||||
if (rc == NGX_CONF_BLOCK_DONE) {
|
||||
if (!block) {
|
||||
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "unexpected \"}\"");
|
||||
rc = NGX_ERROR;
|
||||
break;
|
||||
}
|
||||
|
||||
block = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue