[asterisk-commits] crichter: branch 1.2 r45808 -
/branches/1.2/channels/chan_misdn.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sat Oct 21 05:35:14 MST 2006
Author: crichter
Date: Sat Oct 21 07:35:13 2006
New Revision: 45808
URL: http://svn.digium.com/view/asterisk?rev=45808&view=rev
Log:
fixed issue, that if chan_misdn is loaded and couldn't be initialized it would cause a segfault after 'reload'. Reported by Drew/Matt thx.
Modified:
branches/1.2/channels/chan_misdn.c
Modified: branches/1.2/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_misdn.c?rev=45808&r1=45807&r2=45808&view=diff
==============================================================================
--- branches/1.2/channels/chan_misdn.c (original)
+++ branches/1.2/channels/chan_misdn.c Sat Oct 21 07:35:13 2006
@@ -64,6 +64,7 @@
char global_tracefile[BUFFERSIZE+1];
+static int g_config_initialized=0;
struct misdn_jb{
int size;
@@ -706,6 +707,11 @@
static void reload_config(void)
{
int i, cfg_debug;
+
+ if (!g_config_initialized) {
+ ast_log(LOG_WARNING, "chan_misdn is not initialized properly, still reloading ?\n");
+ return ;
+ }
free_robin_list();
misdn_cfg_reload();
@@ -4091,7 +4097,6 @@
*******************************************/
-static int g_config_initialized=0;
int load_module(void)
{
More information about the asterisk-commits
mailing list