mirror of
https://github.com/nginx/nginx.git
synced 2025-08-06 14:56:15 +08:00
stop on superfluous closing "}"
This commit is contained in:
parent
b59f369077
commit
83fe66212f
@ -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…
Reference in New Issue
Block a user