[Freeswitch-svn] [commit] r13958 - freeswitch/trunk/src/mod/event_handlers/mod_event_multicast
FreeSWITCH SVN
andrew at freeswitch.org
Thu Jun 25 11:44:44 PDT 2009
Author: andrew
Date: Thu Jun 25 13:44:43 2009
New Revision: 13958
Log:
Clear out the pre shared key on a config reload properly
Modified:
freeswitch/trunk/src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c
Modified: freeswitch/trunk/src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c (original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c Thu Jun 25 13:44:43 2009
@@ -224,6 +224,10 @@
switch_mutex_lock(globals.mutex);
switch_core_hash_destroy(&globals.event_hash);
globals.event_hash = NULL;
+ if (globals.psk) {
+ switch_safe_free(globals.psk);
+ globals.psk = NULL;
+ }
switch_core_hash_init(&globals.event_hash, module_pool);
memset(globals.event_list, 0, SWITCH_EVENT_ALL + 1);
if (load_config() != SWITCH_STATUS_SUCCESS) {
More information about the Freeswitch-svn
mailing list