From: Igor Sysoev Date: Tue, 20 Feb 2007 14:33:26 +0000 (+0000) Subject: stop on superfluous closing "}" X-Git-Tag: release-0.5.14~4 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=83fe66212f9af7714f59813b5d502c615d5b4917;p=nginx.git stop on superfluous closing "}" --- diff --git a/src/core/ngx_conf_file.c b/src/core/ngx_conf_file.c index e06315ee5..1bea4f87d 100644 --- a/src/core/ngx_conf_file.c +++ b/src/core/ngx_conf_file.c @@ -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; }