diff options
Diffstat (limited to 'epan/dissectors/packet-xip-serval.c')
-rw-r--r-- | epan/dissectors/packet-xip-serval.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-xip-serval.c b/epan/dissectors/packet-xip-serval.c index 5a75939e1d..01a875d570 100644 --- a/epan/dissectors/packet-xip-serval.c +++ b/epan/dissectors/packet-xip-serval.c @@ -246,13 +246,13 @@ display_xip_serval(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) * size of the TCP header of 32-bit words. */ guint8 tcp_len = hi_nibble(tvb_get_guint8(tvb, offset + 12))*4; - next_tvb = tvb_new_subset(tvb, offset, tcp_len, tcp_len); + next_tvb = tvb_new_subset_length_caplen(tvb, offset, tcp_len, tcp_len); call_dissector(tcp_handle, next_tvb, pinfo, tree); break; } case IP_PROTO_UDP: /* The UDP header is always 8 bytes. */ - next_tvb = tvb_new_subset(tvb, offset, 8, 8); + next_tvb = tvb_new_subset_length_caplen(tvb, offset, 8, 8); call_dissector(udp_handle, next_tvb, pinfo, tree); break; default: |