Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
39635c7e
Commit
39635c7e
authored
Apr 29, 2019
by
Sébastien Blin
Browse files
ice: avoid segfault when ice session doesn't exist anymore
Change-Id: Ib4ede6e0c9eb8d1985d2f0273c98cbfd0433b0ba
parent
a4723c45
Changes
1
Show whitespace changes
Inline
Side-by-side
contrib/src/pjproject/rfc6544.patch
View file @
39635c7e
...
...
@@ -1376,7 +1376,7 @@ index c51dba771..b96390613 100644
c->state == PJ_ICE_SESS_CHECK_STATE_WAITING)
{
diff --git a/pjnath/src/pjnath/ice_strans.c b/pjnath/src/pjnath/ice_strans.c
index 54ef8ba69..
21be04bfe
100644
index 54ef8ba69..
f2d0aa5ed
100644
--- a/pjnath/src/pjnath/ice_strans.c
+++ b/pjnath/src/pjnath/ice_strans.c
@@ -69,6 +69,7 @@
enum tp_type
...
...
@@ -2140,14 +2140,14 @@ index 54ef8ba69..21be04bfe 100644
+ return;
+ }
+ data = (sock_user_data *)pj_stun_sock_get_user_data(stun_sock);
+ if (data
== NULL
) {
+ if (
!
data) {
+ /* We have disassociated ourselves from the STUN socket */
+ return;
+ }
+
+ comp = data->comp;
+ ice_st = comp->ice_st;
+ if (ice_st
== NULL
) {
+ if (
!
ice_st
|| !ice_st->ice
) {
+ // Incorrect ICE
+ return;
+ }
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment