diff options
Diffstat (limited to 'epan/tvbuff.c')
-rw-r--r-- | epan/tvbuff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c index 2ac01751b6..6bd1c4b341 100644 --- a/epan/tvbuff.c +++ b/epan/tvbuff.c @@ -341,7 +341,7 @@ tvb_new_octet_aligned(tvbuff_t *tvb, guint32 bit_offset, gint32 no_of_bits) /* already aligned -> shortcut */ if ((left == 0) && (remaining_bits == 0)) { - return tvb_new_subset(tvb, byte_offset, datalen, datalen); + return tvb_new_subset_length_caplen(tvb, byte_offset, datalen, datalen); } DISSECTOR_ASSERT(datalen>0); |