Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
33411cef
Commit
33411cef
authored
Jul 17, 2012
by
Ghislain MARY
Browse files
Do not try to process received STUN packets if there is no ICE session.
parent
8a7e4bc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/ice.c
src/ice.c
+6
-1
No files found.
src/ice.c
View file @
33411cef
...
...
@@ -1186,6 +1186,8 @@ void ice_handle_stun_packet(IceCheckList *cl, RtpSession *rtp_session, OrtpEvent
int
recvport
;
bool_t
res
;
if
(
cl
->
session
==
NULL
)
return
;
memset
(
&
msg
,
0
,
sizeof
(
msg
));
res
=
stunParseMessage
((
char
*
)
mp
->
b_rptr
,
mp
->
b_wptr
-
mp
->
b_rptr
,
&
msg
);
if
(
res
==
FALSE
)
{
...
...
@@ -1767,9 +1769,12 @@ void ice_check_list_process(IceCheckList *cl, RtpSession *rtp_session)
IceCandidatePairState
state
;
IceCandidatePair
*
pair
;
MSList
*
elem
;
uint64_t
curtime
=
cl
->
session
->
ticker
->
time
;
uint64_t
curtime
;
bool_t
retransmissions_pending
=
FALSE
;
if
(
cl
->
session
==
NULL
)
return
;
curtime
=
cl
->
session
->
ticker
->
time
;
switch
(
cl
->
state
)
{
case
ICL_Completed
:
/* Handle keepalive. */
...
...
Write
Preview
Markdown
is supported
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