diff options
Diffstat (limited to 'epan/dissectors/packet-ixiatrailer.c')
-rw-r--r-- | epan/dissectors/packet-ixiatrailer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ixiatrailer.c b/epan/dissectors/packet-ixiatrailer.c index ad4f39b391..07e843b217 100644 --- a/epan/dissectors/packet-ixiatrailer.c +++ b/epan/dissectors/packet-ixiatrailer.c @@ -112,8 +112,7 @@ dissect_ixiatrailer(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, voi cksum = tvb_get_ntohs(tvb, tvblen-2); /* Verify the checksum; if not valid, it means that the trailer is not valid */ - vec.len = trailer_length + 3; - vec.ptr = tvb_get_ptr(tvb, offset, vec.len); + SET_CKSUM_VEC_TVB(vec, tvb, offset, trailer_length + 3); comp_cksum = in_cksum(&vec, 1); if (pntoh16(&comp_cksum) != cksum) { return 0; |