[asterisk-commits] qwell: trunk r82712 -	/trunk/cdr/cdr_sqlite3_custom.c
    SVN commits to the Asterisk project 
    asterisk-commits at lists.digium.com
       
    Mon Sep 17 16:52:07 CDT 2007
    
    
  
Author: qwell
Date: Mon Sep 17 16:52:07 2007
New Revision: 82712
URL: http://svn.digium.com/view/asterisk?view=rev&rev=82712
Log:
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.
Modified:
    trunk/cdr/cdr_sqlite3_custom.c
Modified: trunk/cdr/cdr_sqlite3_custom.c
URL: http://svn.digium.com/view/asterisk/trunk/cdr/cdr_sqlite3_custom.c?view=diff&rev=82712&r1=82711&r2=82712
==============================================================================
--- trunk/cdr/cdr_sqlite3_custom.c (original)
+++ trunk/cdr/cdr_sqlite3_custom.c Mon Sep 17 16:52:07 2007
@@ -209,7 +209,8 @@
 			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);
    
    
More information about the asterisk-commits
mailing list