]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't destroy confbridge config when error is encountered during a reload.
authorMark Michelson <mmichelson@digium.com>
Mon, 1 Oct 2012 16:12:43 +0000 (16:12 +0000)
committerMark Michelson <mmichelson@digium.com>
Mon, 1 Oct 2012 16:12:43 +0000 (16:12 +0000)
Not panicking means that the old config is kept.

(closes issue ASTERISK-20458)
Reported by: Leif Madsen
Patches:
ASTERISK-20458.patch uploaded by Mark Michelson(license #5049)
Tested by Leif Madsen

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@374106 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/confbridge/conf_config_parser.c

index f4a960410762c01958f4eac5043abbcf74bba664..128691458208c93c607cb7b75921a348b0addd16 100644 (file)
@@ -1316,7 +1316,10 @@ int conf_load_config(int reload)
 
        return 0;
 error:
-       conf_destroy_config();
+       /* On a reload, just keep the config we already have in place. */
+       if (!reload) {
+               conf_destroy_config();
+       }
        return -1;
 }