[asterisk-commits] kmoore: branch 1.8 r397033 - /branches/1.8/main/cel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Aug 20 08:51:43 CDT 2013


Author: kmoore
Date: Tue Aug 20 08:51:41 2013
New Revision: 397033

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=397033
Log:
Protect CEL from an invalid config on reload

This patch fixes CEL to properly handle an invalid config on reload.

(closes issue ASTERISK-22259)
Reported by: Corey Farrell
Tested by: Corey Farrell
Patches:
    cel-config.patch uploaded by Corey Farrell

Modified:
    branches/1.8/main/cel.c

Modified: branches/1.8/main/cel.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/cel.c?view=diff&rev=397033&r1=397032&r2=397033
==============================================================================
--- branches/1.8/main/cel.c (original)
+++ branches/1.8/main/cel.c Tue Aug 20 08:51:41 2013
@@ -310,7 +310,7 @@
 
 	config = ast_config_load2("cel.conf", "cel", config_flags);
 
-	if (config == CONFIG_STATUS_FILEMISSING) {
+	if (config == CONFIG_STATUS_FILEMISSING || config == CONFIG_STATUS_FILEUNCHANGED || config == CONFIG_STATUS_FILEINVALID) {
 		config = NULL;
 		goto return_cleanup;
 	}




More information about the asterisk-commits mailing list