Skip to content

Commit

Permalink
Merge pull request #2244 from vasilevalex/cfg_parse
Browse files Browse the repository at this point in the history
Reset config errors counter on every config parsing

(cherry picked from commit 926d7c7)
  • Loading branch information
bogdan-iancu committed Sep 8, 2020
1 parent 51c5fbb commit 6a60877
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cfg_pp.c
Expand Up @@ -116,6 +116,7 @@ int parse_opensips_cfg(const char *cfg_file, const char *preproc_cmdline,
/* parse the config file, prior to this only default values
e.g. for debugging settings will be used */
yyin = cfg_stream;
cfg_errors = 0;
if (yyparse() != 0 || cfg_errors) {
LM_ERR("bad config file (%d errors)\n", cfg_errors);
fclose(cfg_stream);
Expand Down

0 comments on commit 6a60877

Please sign in to comment.