提交 8966b4ba authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-2867

上级 38f99420
...@@ -602,7 +602,7 @@ static void ipchanged_event_handler(switch_event_t *event) ...@@ -602,7 +602,7 @@ static void ipchanged_event_handler(switch_event_t *event)
for (hi = switch_hash_first(NULL, globals.profile_hash); hi; hi = switch_hash_next(hi)) { for (hi = switch_hash_first(NULL, globals.profile_hash); hi; hi = switch_hash_next(hi)) {
switch_hash_this(hi, NULL, NULL, &val); switch_hash_this(hi, NULL, NULL, &val);
profile = (mdl_profile_t *) val; profile = (mdl_profile_t *) val;
if (old_ip4 && !strcmp(profile->extip, old_ip4)) { if (old_ip4 && profile->extip && !strcmp(profile->extip, old_ip4)) {
tmp = profile->extip; tmp = profile->extip;
profile->extip = strdup(new_ip4); profile->extip = strdup(new_ip4);
switch_safe_free(tmp); switch_safe_free(tmp);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论