From 829337a65eb752cf9c271c0e6692486936d46cf5 Mon Sep 17 00:00:00 2001 From: stig Date: Sun, 17 Apr 2011 18:49:58 +0000 Subject: [PATCH] Corrected equality check in frag_equal(). Found by clang. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36685 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/dissectors/packet-sctp.c | 8 ++++---- 1 file 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); } -- 2.34.1