diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-09-25 01:15:29 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-09-25 08:15:58 +0000 |
commit | d094eab1a3e76ace9a7bd0e82abd0470f1c9a420 (patch) | |
tree | 9ee6760ae264e29bc6c86e106666a61c2ebe80de /epan/dissectors/packet-pktap.c | |
parent | a87ea36b129d6c50c02d807cb0dc0b6f1c906284 (diff) |
The length of the pktap header isn't fixed, it's a field in the header.
Don't assume that, once we've dissected the fields in the header we know
about and skipped past them, that the payload follows immediately
afterwards; use the header length from the header to find the payload.
Bug: 10502
Change-Id: I645fe652240e0068d99cf00d19e3705615857d5b
Reviewed-on: https://code.wireshark.org/review/4280
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-pktap.c')
-rw-r--r-- | epan/dissectors/packet-pktap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-pktap.c b/epan/dissectors/packet-pktap.c index c5d65c1be9..676e8c6530 100644 --- a/epan/dissectors/packet-pktap.c +++ b/epan/dissectors/packet-pktap.c @@ -205,7 +205,7 @@ dissect_pktap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) offset += 20; if (rectype == PKT_REC_PACKET) { - next_tvb = tvb_new_subset_remaining(tvb, offset); + next_tvb = tvb_new_subset_remaining(tvb, pkt_len); dissector_try_uint(wtap_encap_dissector_table, wtap_pcap_encap_to_wtap_encap(dlt), next_tvb, pinfo, tree); } |