Allow to use fbegin without fend

This commit is contained in:
Vadim Vetrov
2024-12-18 22:00:49 +03:00
parent 25199288e8
commit 062200d9ea
2 changed files with 4 additions and 5 deletions

7
args.c
View File

@@ -471,10 +471,8 @@ int yparse_args(int argc, char *argv[]) {
}
rep_config.connbytes_limit = num;
break;
case OPT_START_SECTION:
if (section_iter != SECT_ITER_DEFAULT && section_iter != SECT_ITER_OUTSIDE)
goto invalid_opt;
case OPT_START_SECTION:
{
struct section_config_t *nsect;
ret = init_section_config(&nsect, rep_config.last_section);
if (ret < 0) {
@@ -487,6 +485,7 @@ int yparse_args(int argc, char *argv[]) {
section_iter = SECT_ITER_INSIDE;
break;
}
case OPT_END_SECTION:
if (section_iter != SECT_ITER_INSIDE)
goto invalid_opt;