From 051dcd1086ad98d4c604740a6f95fd8eec9a75d3 Mon Sep 17 00:00:00 2001 From: Nikolai Ipatyev Date: Sat, 28 Oct 2017 20:30:24 +0300 Subject: Fix bug in FMPUX heuristic dissector The variables in the check were reversed Change-Id: Idc7fc2b88ac1cde699b76423890918ce4b0ac086 Reviewed-on: https://code.wireshark.org/review/24149 Reviewed-by: Michael Mann --- epan/dissectors/packet-fp_mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/dissectors/packet-fp_mux.c b/epan/dissectors/packet-fp_mux.c index 2caf1fb9e5..a8067adc53 100644 --- a/epan/dissectors/packet-fp_mux.c +++ b/epan/dissectors/packet-fp_mux.c @@ -308,7 +308,7 @@ static int heur_dissect_fp_mux(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tr chunks++; } - if(total_length > offset) { + if(offset > total_length) { return FALSE; } -- cgit v1.2.3