[asterisk-commits] file: branch 11 r405582 - in /branches/11: ./ cel/cel_manager.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jan 15 10:35:35 CST 2014


Author: file
Date: Wed Jan 15 10:35:30 2014
New Revision: 405582

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=405582
Log:
cel_manager: Don't crash if configuration file is invalid.

The cel_manager module did not properly handle the case where the
configuration file was invalid. The module will now output a warning
message and disable itself if this occurs.

Reported by: Bryan Walters
........

Merged revisions 405581 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Modified:
    branches/11/   (props changed)
    branches/11/cel/cel_manager.c

Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/11/cel/cel_manager.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/cel/cel_manager.c?view=diff&rev=405582&r1=405581&r2=405582
==============================================================================
--- branches/11/cel/cel_manager.c (original)
+++ branches/11/cel/cel_manager.c Wed Jan 15 10:35:30 2014
@@ -153,7 +153,12 @@
 		return 0;
 	}
 
-	if (!cfg) {
+	if (cfg == CONFIG_STATUS_FILEINVALID) {
+		ast_log(LOG_WARNING, "Configuration file '%s' is invalid. CEL manager Module not activated.\n",
+			CONF_FILE);
+		enablecel = 0;
+		return -1;
+	} else if (!cfg) {
 		ast_log(LOG_WARNING, "Failed to load configuration file. CEL manager Module not activated.\n");
 		enablecel = 0;
 		return -1;




More information about the asterisk-commits mailing list