Skip to content
Snippets Groups Projects
Commit dc983a24 authored by Guillaume Roguez's avatar Guillaume Roguez Committed by Adrien Béraud
Browse files

fix assertion when no remote SDP available


This situation may happens when the INVITE response is valid (200)
but there are some SDP decoding errors.
Prevent crash by assert, by returning an empty result.

Change-Id: Ic1f2914eb6b5f4018d5b90775132ecd564a31334
Reviewed-by: default avatarAndreas Traczyk <andreas.traczyk@savoirfairelinux.com>
parent 5f78b14b
No related branches found
No related tags found
No related merge requests found
...@@ -717,9 +717,9 @@ IceTransport::Attribute ...@@ -717,9 +717,9 @@ IceTransport::Attribute
Sdp::getIceAttributes() const Sdp::getIceAttributes() const
{ {
IceTransport::Attribute ice_attrs; IceTransport::Attribute ice_attrs;
auto session = activeRemoteSession_ ? activeRemoteSession_ : remoteSession_; if (auto session = (activeRemoteSession_ ? activeRemoteSession_ : remoteSession_))
assert(session);
return getIceAttributes(session); return getIceAttributes(session);
return {};
} }
IceTransport::Attribute IceTransport::Attribute
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment