diff options
author | Anders Broman <anders.broman@ericsson.com> | 2009-05-14 20:04:28 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2009-05-14 20:04:28 +0000 |
commit | 64a33ad7af611b404c5ac8a691863f6a9b820d22 (patch) | |
tree | f3ba6779e0b02193e332176a66ed71a80e059b7b /epan/dissectors/packet-tcp.c | |
parent | 4ec2c4ff47ac90fcb232d6fdd99b5e09b0d5da1e (diff) |
Apply some of the patches from:
http://wiki.wireshark.org/Development/Optimization
svn path=/trunk/; revision=28364
Diffstat (limited to 'epan/dissectors/packet-tcp.c')
-rw-r--r-- | epan/dissectors/packet-tcp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-tcp.c b/epan/dissectors/packet-tcp.c index f56bcbce68..ad73e8797f 100644 --- a/epan/dissectors/packet-tcp.c +++ b/epan/dissectors/packet-tcp.c @@ -1628,11 +1628,9 @@ again: int old_len; /* create a new TVB structure for desegmented data */ - next_tvb = tvb_new_real_data(ipfd_head->data, + next_tvb = tvb_new_child_real_data(tvb, ipfd_head->data, ipfd_head->datalen, ipfd_head->datalen); - /* add this tvb as a child to the original one */ - tvb_set_child_real_data_tvbuff(tvb, next_tvb); /* add desegmented data to the data source list */ add_new_data_source(pinfo, next_tvb, "Reassembled TCP"); |