Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
b16d07cd
Unverified
Commit
b16d07cd
authored
4 years ago
by
Sébastien Blin
Browse files
Options
Downloads
Patches
Plain Diff
sdp: check localSession
Change-Id: If2db06d2c0a6c407c1416cc6953be133eea0f10f
parent
0a7c0ae9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sip/sdp.cpp
+4
-0
4 additions, 0 deletions
src/sip/sdp.cpp
with
4 additions
and
0 deletions
src/sip/sdp.cpp
+
4
−
0
View file @
b16d07cd
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment