summaryrefslogtreecommitdiff
path: root/pjnath/src
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2010-11-17 09:00:17 +0000
committerBenny Prijono <bennylp@teluu.com>2010-11-17 09:00:17 +0000
commit24db562d158b7d978dc2be623dd42705c3800e28 (patch)
tree46597fffed32b6e97e41ed93af626dda31199d07 /pjnath/src
parentd74ac83362644f2b7af8b2bf7797defd893e2d53 (diff)
Fixed #1158: Possible wrong multiplexing of STUN traffic inside TURN Data Indication
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3369 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjnath/src')
-rw-r--r--pjnath/src/pjnath/ice_session.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/pjnath/src/pjnath/ice_session.c b/pjnath/src/pjnath/ice_session.c
index d40a2ce5..30aba300 100644
--- a/pjnath/src/pjnath/ice_session.c
+++ b/pjnath/src/pjnath/ice_session.c
@@ -2894,8 +2894,13 @@ PJ_DEF(pj_status_t) pj_ice_sess_on_rx_pkt(pj_ice_sess *ice,
return PJ_EINVAL;
}
+ /* Don't check fingerprint. We only need to distinguish STUN and non-STUN
+ * packets. We don't need to verify the STUN packet too rigorously, that
+ * will be done by the user.
+ */
status = pj_stun_msg_check((const pj_uint8_t*)pkt, pkt_size,
- PJ_STUN_IS_DATAGRAM);
+ PJ_STUN_IS_DATAGRAM |
+ PJ_STUN_NO_FINGERPRINT_CHECK);
if (status == PJ_SUCCESS) {
status = pj_stun_session_on_rx_pkt(comp->stun_sess, pkt, pkt_size,
PJ_STUN_IS_DATAGRAM, msg_data,