diff options
-rw-r--r-- | epan/dissectors/packet-opa-mad.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-opa-mad.c b/epan/dissectors/packet-opa-mad.c index 29242fdf02..bb4c4b6b53 100644 --- a/epan/dissectors/packet-opa-mad.c +++ b/epan/dissectors/packet-opa-mad.c @@ -2813,7 +2813,8 @@ static gint parse_MAD_AttributeModifier(proto_tree *MAD_tree, tvbuff_t *tvb, gin default: break; } - return local_offset += 4; + local_offset += 4; + return local_offset; } /* Parse the common MAD Header */ static gboolean parse_MAD_Common(proto_tree *parentTree, packet_info *pinfo, tvbuff_t *tvb, gint *offset, MAD_t *MAD) |