Merge "config.c: Fix a crash in extconfig parsing"

This commit is contained in:
Joshua Colp 2019-04-10 06:40:54 -05:00 committed by Gerrit Code Review
commit a9bdbdc456
1 changed files with 4 additions and 1 deletions

View File

@ -2904,7 +2904,10 @@ static int reload_module(void)
ast_copy_string(buf, v->value, sizeof(buf));
stringp = buf;
driver = strsep(&stringp, ",");
if (!stringp) {
ast_log(LOG_WARNING, "extconfig.conf: value '%s' ignored due to wrong format\n", v->value);
continue;
}
if ((tmp = strchr(stringp, '\"')))
stringp = tmp;