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
This commit is contained in:
Andrew Thompson 2009-06-25 18:44:43 +00:00
parent 1fbee17a16
commit c58b819f38

View 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) {