summaryrefslogtreecommitdiff
path: root/cdr/cdr_sqlite3_custom.c
diff options
context:
space:
mode:
authorJason Parker <jparker@digium.com>2007-09-17 21:52:07 +0000
committerJason Parker <jparker@digium.com>2007-09-17 21:52:07 +0000
commit0d1abc92fe676c428d838cc128907f715c794e1b (patch)
tree925900b8ffaf08be0a0d064c34c20aa5eb562a32 /cdr/cdr_sqlite3_custom.c
parentcb8c4122bcac46908f39f4ee10f58e1f04b10e5a (diff)
Don't try to continue loading cdr_sqlite3_custom on a module load failure (such as the config not existing)
Closes issue #10749, patch by seanbright. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82712 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'cdr/cdr_sqlite3_custom.c')
-rw-r--r--cdr/cdr_sqlite3_custom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cdr/cdr_sqlite3_custom.c b/cdr/cdr_sqlite3_custom.c
index 1c663362b..c6eb8b5ba 100644
--- a/cdr/cdr_sqlite3_custom.c
+++ b/cdr/cdr_sqlite3_custom.c
@@ -209,7 +209,8 @@ static int load_module(void)
ast_log(LOG_ERROR, "%s: Unable to register custom SQLite3 CDR handling\n", name);
return AST_MODULE_LOAD_DECLINE;
}
- }
+ } else
+ return AST_MODULE_LOAD_DECLINE;
/* is the database there? */
snprintf(fn, sizeof(fn), "%s/master.db", ast_config_AST_LOG_DIR);