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

This commit is contained in:
Michael Jerris 2015-08-14 12:51:12 -05:00
parent dff03e35cf
commit 58f1272490
1 changed files with 5 additions and 0 deletions

View File

@ -5026,6 +5026,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),