FS-11903: [mod_sofia] fix warnV547 Expression 'sip->sip_via' is always true.

This commit is contained in:
Liyang 2019-07-08 15:17:37 +08:00 committed by Andrey Volk
parent f0da2f2cd4
commit 6f9ee4216c
1 changed files with 1 additions and 5 deletions

View File

@ -10563,11 +10563,7 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia
char tmp[35] = "";
const char *ipv6 = strchr(tech_pvt->mparams.remote_ip, ':');
if (sip->sip_via) {
transport = sofia_glue_via2transport(sip->sip_via);
} else {
transport = sofia_glue_url2transport(sip->sip_contact->m_url);
}
tech_pvt->record_route =