aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-reload-framing.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-10-14 18:16:11 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-10-14 18:16:11 +0000
commit7541b470206726239051a0453ceeb377d80cb19d (patch)
tree45af85591d3e4a790539224470fddbe28f6ed6ec /epan/dissectors/packet-reload-framing.c
parentc94403e9ba67eae9c04a033957d78533fed254b5 (diff)
Try to pptimize heuristics slightly.
svn path=/trunk/; revision=52603
Diffstat (limited to 'epan/dissectors/packet-reload-framing.c')
-rw-r--r--epan/dissectors/packet-reload-framing.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-reload-framing.c b/epan/dissectors/packet-reload-framing.c
index e2842f4c31..2590b480f5 100644
--- a/epan/dissectors/packet-reload-framing.c
+++ b/epan/dissectors/packet-reload-framing.c
@@ -148,14 +148,14 @@ dissect_reload_framing_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tr
if (effective_length < 12) /* [type + seq + length + token] */
return 0;
- message_length = tvb_get_ntoh24(tvb, 1 + 4);
- if (message_length < MIN_RELOADDATA_HDR_LENGTH) {
- return 0;
- }
relo_token = tvb_get_ntohl(tvb,1 + 4 + 3);
if (relo_token != RELOAD_TOKEN) {
return 0;
}
+ message_length = tvb_get_ntoh24(tvb, 1 + 4);
+ if (message_length < MIN_RELOADDATA_HDR_LENGTH) {
+ return 0;
+ }
break;
case ACK:
/* Require previous ACK (i.e., reload_framing_info attached to conversation). */