diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2011-04-17 18:49:58 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2011-04-17 18:49:58 +0000 |
commit | 3c53c25a0c2622dc59a07f6b16e7d75fb3f3960b (patch) | |
tree | f4d3d88b267a0dbaa31d6433c665b4254e0cb9a2 | |
parent | 61041c062d2de5dbcd1232a2483d03bbff16bd7f (diff) |
Corrected equality check in frag_equal().
Found by clang.
svn path=/trunk/; revision=36685
-rw-r--r-- | epan/dissectors/packet-sctp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-sctp.c b/epan/dissectors/packet-sctp.c index e40538ca2d..4484c61b21 100644 --- a/epan/dissectors/packet-sctp.c +++ b/epan/dissectors/packet-sctp.c @@ -2053,10 +2053,10 @@ frag_equal(gconstpointer k1, gconstpointer k2) const frag_key* key2 = (const frag_key*) k2; return ( (key1->sport == key2->sport) && - (key1->dport == key1->dport) && - (key1->verification_tag == key1->verification_tag) && - (key1->stream_id == key1->stream_id) && - (key1->stream_seq_num == key1->stream_seq_num) + (key1->dport == key2->dport) && + (key1->verification_tag == key2->verification_tag) && + (key1->stream_id == key2->stream_id) && + (key1->stream_seq_num == key2->stream_seq_num) ? TRUE : FALSE); } |