mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-27 09:10:51 +00:00
Avoiding Segfaults from buggy depend libs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3953 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
f4267b0c51
commit
0edea416cc
@ -2152,6 +2152,11 @@ static uint8_t negotiate_sdp(switch_core_session_t *session, sdp_session_t *sdp)
|
||||
|
||||
channel = switch_core_session_get_channel(session);
|
||||
|
||||
if (!sdp->sdp_connection) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot find a c= line in the sdp!\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if ((tech_pvt->origin = switch_core_session_strdup(session, (char *) sdp->sdp_origin->o_username))) {
|
||||
if (strstr(tech_pvt->origin, "CiscoSystemsSIP-GW-UserAgent")) {
|
||||
switch_set_flag_locked(tech_pvt, TFLAG_BUGGY_2833);
|
||||
|
Loading…
x
Reference in New Issue
Block a user