Skip to content
Snippets Groups Projects
Unverified Commit b16d07cd authored by Sébastien Blin's avatar Sébastien Blin
Browse files

sdp: check localSession

Change-Id: If2db06d2c0a6c407c1416cc6953be133eea0f10f
parent 0a7c0ae9
No related branches found
No related tags found
No related merge requests found
......@@ -733,6 +733,10 @@ Sdp::getIceCandidates(unsigned media_index) const
JAMI_ERR("getIceCandidates failed: no remote session");
return {};
}
if (not localSession) {
JAMI_ERR("getIceCandidates failed: no local session");
return {};
}
if (media_index >= session->media_count || media_index >= localSession->media_count) {
JAMI_ERR("getIceCandidates failed: cannot access media#%u (may be deactivated)",
media_index);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment