提交 bfa31287 authored 作者: Michael Jerris's avatar Michael Jerris

FS-7955: [mod_sofia] fix crash caused by invalid contact when using event to send a notify message

上级 30ffe287
......@@ -4992,6 +4992,11 @@ static void general_event_handler(switch_event_t *event)
route_uri = sofia_glue_strip_uri(dst->route_uri);
}
if (zstr(dst->contact)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid contact uri [%s]\n", switch_str_nil(dst->contact));
return;
}
nh = nua_handle(profile->nua,
NULL,
NUTAG_URL(dst->contact),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论