aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--epan/dissectors/packet-ip.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/epan/dissectors/packet-ip.c b/epan/dissectors/packet-ip.c
index cac6f01b40..2e3ffdfd18 100644
--- a/epan/dissectors/packet-ip.c
+++ b/epan/dissectors/packet-ip.c
@@ -2316,12 +2316,10 @@ dissect_ip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
version = tvb_get_guint8(tvb, 0) >> 4;
if(version == 4){
- dissect_ip_v4(tvb, pinfo, tree, data);
- return tvb_captured_length(tvb);
+ return dissect_ip_v4(tvb, pinfo, tree, data);
}
if(version == 6){
- call_dissector(ipv6_handle, tvb, pinfo, tree);
- return tvb_captured_length(tvb);
+ return call_dissector(ipv6_handle, tvb, pinfo, tree);
}
/* Bogus IP version */