summaryrefslogtreecommitdiff
path: root/plugins/wimax/mac_hd_generic_decoder.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2009-05-13 19:44:44 +0000
committerAnders Broman <anders.broman@ericsson.com>2009-05-13 19:44:44 +0000
commitfbd05f0fce6a10a1f3059c40628962bc056e10ef (patch)
tree8bae6539c4a0282bdb37ac62df2b5ecc5f3f72cb /plugins/wimax/mac_hd_generic_decoder.c
parent6d2afb455adb12a7deb9c677fce39561e5c5be1c (diff)
downloadwireshark-fbd05f0fce6a10a1f3059c40628962bc056e10ef.tar.gz
Apply some of the patches from:
http://wiki.wireshark.org/Development/Optimization svn path=/trunk/; revision=28355
Diffstat (limited to 'plugins/wimax/mac_hd_generic_decoder.c')
-rw-r--r--plugins/wimax/mac_hd_generic_decoder.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/wimax/mac_hd_generic_decoder.c b/plugins/wimax/mac_hd_generic_decoder.c
index 4356ea855e..a56020acde 100644
--- a/plugins/wimax/mac_hd_generic_decoder.c
+++ b/plugins/wimax/mac_hd_generic_decoder.c
@@ -1896,9 +1896,7 @@ void dissect_mac_header_generic_decoder(tvbuff_t *tvb, packet_info *pinfo, proto
{ /* defragmented completely */
payload_length = payload_frag->len;
/* create the new tvb for defragmented frame */
- payload_tvb = tvb_new_real_data(payload_frag->data, payload_length, payload_length);
- /* attach the payload_tvb to tvb so that it will be cleaned up when tvb is cleaned up */
- tvb_set_child_real_data_tvbuff(tvb, payload_tvb);
+ payload_tvb = tvb_new_child_real_data(tvb, payload_frag->data, payload_length, payload_length);
/* add the defragmented data to the data source list */
add_new_data_source(pinfo, payload_tvb, "Reassembled WiMax MAC payload");
/* save the tvb langth */