diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-04-04 05:48:06 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-04-04 05:48:06 +0000 |
commit | 533c4bd3b78a0429024e6f0264f43e50cb00d49c (patch) | |
tree | c3b5c9435876e58a3e2938a9ed9a24464864a9c8 /epan/tvbuff.c | |
parent | 178c29a63528145d7d2dbb2741e540b3dadc75e7 (diff) |
From jakub Zawadzki:
I've fixed composite tests #0 and #2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36440 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/tvbuff.c')
-rw-r--r-- | epan/tvbuff.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c index 32f8225868..57b9580304 100644 --- a/epan/tvbuff.c +++ b/epan/tvbuff.c @@ -604,6 +604,7 @@ tvb_composite_finalize(tvbuff_t* tvb) DISSECTOR_ASSERT(tvb && !tvb->initialized); DISSECTOR_ASSERT(tvb->type == TVBUFF_COMPOSITE); DISSECTOR_ASSERT(tvb->length == 0); + DISSECTOR_ASSERT(tvb->reported_length == 0); composite = &tvb->tvbuffs.composite; num_members = g_slist_length(composite->tvbs); @@ -616,6 +617,7 @@ tvb_composite_finalize(tvbuff_t* tvb) member_tvb = slist->data; composite->start_offsets[i] = tvb->length; tvb->length += member_tvb->length; + tvb->reported_length += member_tvb->reported_length; composite->end_offsets[i] = tvb->length - 1; i++; } |