提交 c58b819f authored 作者: Andrew Thompson's avatar Andrew Thompson

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
上级 1fbee17a
...@@ -224,6 +224,10 @@ static void event_handler(switch_event_t *event) ...@@ -224,6 +224,10 @@ static void event_handler(switch_event_t *event)
switch_mutex_lock(globals.mutex); switch_mutex_lock(globals.mutex);
switch_core_hash_destroy(&globals.event_hash); switch_core_hash_destroy(&globals.event_hash);
globals.event_hash = NULL; globals.event_hash = NULL;
if (globals.psk) {
switch_safe_free(globals.psk);
globals.psk = NULL;
}
switch_core_hash_init(&globals.event_hash, module_pool); switch_core_hash_init(&globals.event_hash, module_pool);
memset(globals.event_list, 0, SWITCH_EVENT_ALL + 1); memset(globals.event_list, 0, SWITCH_EVENT_ALL + 1);
if (load_config() != SWITCH_STATUS_SUCCESS) { if (load_config() != SWITCH_STATUS_SUCCESS) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论