diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-08-09 04:24:50 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-08-09 04:24:50 +0000 |
commit | 8bf418168488933a4095cb2833ba66c4081951da (patch) | |
tree | 6abf44970f6464f87780a5ac7b9974b7d2bebca0 /pjnath/src | |
parent | c1f3104509fd71965b901afada0694ee544ad9b1 (diff) |
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
Diffstat (limited to 'pjnath/src')
-rw-r--r-- | pjnath/src/pjnath/stun_session.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |