diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-17 21:52:07 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-17 21:52:07 +0000 |
commit | cb3876e55fa1af26516fc0304f91434eaa74ac70 (patch) | |
tree | 925900b8ffaf08be0a0d064c34c20aa5eb562a32 /cdr/cdr_sqlite3_custom.c | |
parent | fb66f22837df215524cdd825478c9471e72bad6c (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: http://svn.digium.com/svn/asterisk/trunk@82712 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cdr/cdr_sqlite3_custom.c')
-rw-r--r-- | cdr/cdr_sqlite3_custom.c | 3 |
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); |