diff options
Diffstat (limited to 'epan/dissectors/packet-ntp.c')
-rw-r--r-- | epan/dissectors/packet-ntp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ntp.c b/epan/dissectors/packet-ntp.c index 9a4753b0ce..e6a34accdc 100644 --- a/epan/dissectors/packet-ntp.c +++ b/epan/dissectors/packet-ntp.c @@ -954,7 +954,7 @@ dissect_ntp_ext(tvbuff_t *tvb, proto_tree *ntp_tree, int offset) */ proto_tree_add_text(ntp_tree, tvb, offset+2, 2, "Extension length %u < 8", extlen); - offset += tvb_length_remaining(tvb, offset); + offset += tvb_captured_length_remaining(tvb, offset); return offset; } if (extlen % 4) { @@ -965,7 +965,7 @@ dissect_ntp_ext(tvbuff_t *tvb, proto_tree *ntp_tree, int offset) proto_tree_add_text(ntp_tree, tvb, offset+2, 2, "Extension length %u isn't a multiple of 4", extlen); - offset += tvb_length_remaining(tvb, offset); + offset += tvb_captured_length_remaining(tvb, offset); return offset; } endoffset = offset + extlen; |