diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-04-21 17:38:57 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-04-21 17:38:57 +0000 |
commit | 09e0d5b406fd2e4300df92b15ffef96e935bbb47 (patch) | |
tree | b740a04a70e033370b964e76e7a48ac6b24ebb22 /epan/tvbuff.c | |
parent | 39f2407b5f21a1893a8e2aa2a2a546e6c7156536 (diff) | |
download | wireshark-09e0d5b406fd2e4300df92b15ffef96e935bbb47.tar.gz |
When creating a subset tvbuff, inherit the flags from the tvbuff of
which we're making a subset, so that if the parent tvbuff is marked as a
fragment, the child tvbuff will be marked as one as well.
svn path=/trunk/; revision=48953
Diffstat (limited to 'epan/tvbuff.c')
-rw-r--r-- | epan/tvbuff.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c index 0cb3d55346..ca37e19f07 100644 --- a/epan/tvbuff.c +++ b/epan/tvbuff.c @@ -407,6 +407,7 @@ tvb_new_with_subset(tvbuff_t *backing, const gint reported_length, tvb->tvbuffs.subset.tvb = backing; tvb->length = tvb->tvbuffs.subset.length; + tvb->flags = backing->flags; if (reported_length == -1) { tvb->reported_length = backing->reported_length - tvb->tvbuffs.subset.offset; |