From 3422dd98a5b160f302ecdd01bdf978bc959b527c Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Tue, 20 Aug 2013 13:51:41 +0000 Subject: [PATCH] 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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@397033 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/cel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/cel.c b/main/cel.c index 02b37dc11d..761ba9b1d7 100644 --- a/main/cel.c +++ b/main/cel.c @@ -310,7 +310,7 @@ static int do_reload(void) 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; }