stop on superfluous closing "}"

This commit is contained in:
Igor Sysoev 2007-02-20 14:33:26 +00:00
parent b59f369077
commit 83fe66212f

View File

@ -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;
}