Skip to content
Snippets Groups Projects
Commit a6225d10 authored by zuul's avatar zuul Committed by Gerrit Code Review
Browse files

Merge "res_config_sqlite3: Fix crash when loading with invalid config"

parents 0d9cfff4 44abe214
Branches
Tags
No related merge requests found
...@@ -1125,6 +1125,8 @@ static int parse_config(int reload) ...@@ -1125,6 +1125,8 @@ static int parse_config(int reload)
if (config == CONFIG_STATUS_FILEMISSING || config == CONFIG_STATUS_FILEINVALID) { if (config == CONFIG_STATUS_FILEMISSING || config == CONFIG_STATUS_FILEINVALID) {
ast_log(LOG_ERROR, "%s config file '%s'\n", ast_log(LOG_ERROR, "%s config file '%s'\n",
config == CONFIG_STATUS_FILEMISSING ? "Missing" : "Invalid", config_filename); config == CONFIG_STATUS_FILEMISSING ? "Missing" : "Invalid", config_filename);
ast_mutex_unlock(&config_lock);
return 0;
} else { } else {
const char *cat; const char *cat;
struct realtime_sqlite3_db *db; struct realtime_sqlite3_db *db;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment