Commit 91d17b15 authored by smorlat's avatar smorlat

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
parent 5a90a240
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment