forked from mirrors/linphone-iphone
fix treatment of stun packets when no eventq is registered.
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@253 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
5a90a240be
commit
91d17b1569
1 changed files with 6 additions and 7 deletions
|
|
@ -87,14 +87,13 @@ void rtp_session_rtp_parse(RtpSession *session, mblk_t *mp, uint32_t local_str_t
|
|||
rtp_session_dispatch_event(session,ev);
|
||||
return;
|
||||
}
|
||||
}else{
|
||||
/* discard*/
|
||||
ortp_debug("Receiving rtp packet with version number !=2...discarded");
|
||||
stats->bad++;
|
||||
ortp_global_stats.bad++;
|
||||
freemsg(mp);
|
||||
return;
|
||||
}
|
||||
/* discard in two case: the packet is not stun OR nobody is interested by STUN (no eventqs) */
|
||||
ortp_debug("Receiving rtp packet with version number !=2...discarded");
|
||||
stats->bad++;
|
||||
ortp_global_stats.bad++;
|
||||
freemsg(mp);
|
||||
return;
|
||||
}
|
||||
|
||||
/* only count non-stun packets. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue