aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--epan/dissectors/packet-twamp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-twamp.c b/epan/dissectors/packet-twamp.c
index 8f4abce0e1..fc280523e4 100644
--- a/epan/dissectors/packet-twamp.c
+++ b/epan/dissectors/packet-twamp.c
@@ -528,7 +528,7 @@ dissect_owamp_test(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *da
offset += padding;
}
- return tvb_reported_length(tvb);
+ return offset;
}
static int
@@ -590,7 +590,7 @@ dissect_twamp_test(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *da
}
/* Return the total length */
- return tvb_reported_length(tvb);
+ return offset;
}
void proto_register_twamp(void)