mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 07:18:15 +00:00
Merge "config.c: Fix a crash in extconfig parsing"
This commit is contained in:
@@ -2904,7 +2904,10 @@ static int reload_module(void)
|
|||||||
ast_copy_string(buf, v->value, sizeof(buf));
|
ast_copy_string(buf, v->value, sizeof(buf));
|
||||||
stringp = buf;
|
stringp = buf;
|
||||||
driver = strsep(&stringp, ",");
|
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, '\"')))
|
if ((tmp = strchr(stringp, '\"')))
|
||||||
stringp = tmp;
|
stringp = tmp;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user