From c58b819f389564a960e0a8024b29d6ba073cd9b3 Mon Sep 17 00:00:00 2001 From: Andrew Thompson Date: Thu, 25 Jun 2009 18:44:43 +0000 Subject: [PATCH] Clear out the pre shared key on a config reload properly git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13958 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- .../event_handlers/mod_event_multicast/mod_event_multicast.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c b/src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c index 49f0e4324d..cc7b3f2e40 100644 --- a/src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c +++ b/src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c @@ -224,6 +224,10 @@ static void event_handler(switch_event_t *event) 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) {