Skip to content

Commit

Permalink
sql_cacher: fix parsing of 'cache_table' with trailing newline
Browse files Browse the repository at this point in the history
Closes #2682

(cherry picked from commit 312ab9f)
  • Loading branch information
rvlad-patrascu committed Jan 10, 2022
1 parent 6b4226d commit 1342414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sql_cacher/sql_cacher.c
Expand Up @@ -425,7 +425,7 @@ static int parse_cache_entry(unsigned int type, void *val)
EXPIRE_STR_LEN, EXPIRE_STR, str_val.len, str_val.s);
goto parse_err;
}
} else {
} else if (parse_str.len - (p1 - parse_str.s) > 0) {
LM_ERR("unknown parameter: %.*s\n",
(int)(parse_str.len - (p1 - parse_str.s)), p1);
goto parse_err;
Expand Down

0 comments on commit 1342414

Please sign in to comment.