]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Clear out the pre shared key on a config reload properly
authorAndrew Thompson <andrew@hijacked.us>
Thu, 25 Jun 2009 18:44:43 +0000 (18:44 +0000)
committerAndrew Thompson <andrew@hijacked.us>
Thu, 25 Jun 2009 18:44:43 +0000 (18:44 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13958 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c

index 49f0e4324d0f263ee00f51f5bf61c23d33aa65bc..cc7b3f2e403dfb002576c913e16c497354c47641 100644 (file)
@@ -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) {