aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-glbp.c
diff options
context:
space:
mode:
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2009-06-19 06:14:29 +0000
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2009-06-19 06:14:29 +0000
commit48adc45c5484564dde94d1745a954e81c831ac43 (patch)
tree31b01d8997be762c242095b64e193bc5cc6367aa /epan/dissectors/packet-glbp.c
parent4ea76e6ce0149c59e925a5c815f2e13061889918 (diff)
The previous patch fixed only part of the problem,
as offset was only increased inside the if statement. Get rid of offset and put in the numeric value. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28778 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-glbp.c')
-rw-r--r--epan/dissectors/packet-glbp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-glbp.c b/epan/dissectors/packet-glbp.c
index 4535639527..596d1bf781 100644
--- a/epan/dissectors/packet-glbp.c
+++ b/epan/dissectors/packet-glbp.c
@@ -142,7 +142,6 @@ dissect_glbp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_item *ti = NULL;
guint32 type2;
guint32 length2;
- int offset = 0;
type2 = tvb_get_guint8(tvb, 12);
@@ -164,7 +163,6 @@ dissect_glbp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_item(glbp_tree, hf_glbp_unknown1, tvb, 2, 2, FALSE);
proto_tree_add_item(glbp_tree, hf_glbp_unknown2, tvb, 4, 2, FALSE);
proto_tree_add_item(glbp_tree, hf_glbp_somemac, tvb, 6, 6, FALSE);
- offset += 12;
proto_tree_add_item(glbp_tree, hf_glbp_type2, tvb, 12, 1, FALSE);
proto_tree_add_item(glbp_tree, hf_glbp_length2, tvb, 13, 1, FALSE);
@@ -193,7 +191,7 @@ dissect_glbp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
}
- return offset + length2;
+ return 12 + length2;
}
static gboolean