From 8bf418168488933a4095cb2833ba66c4081951da Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Thu, 9 Aug 2007 04:24:50 +0000 Subject: Added checking for STUN message type when performing cached STUN response lookup (for clients who are not able to generate unique transaction ID) [thanks Scott Lu] git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1414 74dad513-b988-da41-8d7b-12977e46ad98 --- pjnath/src/pjnath/stun_session.c | 1 + 1 file changed, 1 insertion(+) (limited to 'pjnath') diff --git a/pjnath/src/pjnath/stun_session.c b/pjnath/src/pjnath/stun_session.c index abf19777..1c62a33c 100644 --- a/pjnath/src/pjnath/stun_session.c +++ b/pjnath/src/pjnath/stun_session.c @@ -891,6 +891,7 @@ static pj_status_t check_cached_response(pj_stun_session *sess, t = sess->cached_response_list.next; while (t != &sess->cached_response_list) { if (t->msg_magic == msg->hdr.magic && + t->msg->hdr.type == msg->hdr.type && pj_memcmp(t->msg_key, msg->hdr.tsx_id, sizeof(msg->hdr.tsx_id))==0) { -- cgit v1.2.3