diff options
author | Anders Broman <anders.broman@ericsson.com> | 2009-05-14 19:28:07 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2009-05-14 19:28:07 +0000 |
commit | 4ec2c4ff47ac90fcb232d6fdd99b5e09b0d5da1e (patch) | |
tree | 369cabcf0a2d69aa832b80c867d33e038c53e36f /epan/dissectors/packet-iscsi.c | |
parent | 5f538e901da1c56b5392e8f7f99f4709f28c11f4 (diff) |
Apply some of the patches from:
http://wiki.wireshark.org/Development/Optimization
svn path=/trunk/; revision=28363
Diffstat (limited to 'epan/dissectors/packet-iscsi.c')
-rw-r--r-- | epan/dissectors/packet-iscsi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-iscsi.c b/epan/dissectors/packet-iscsi.c index 8be9b19085..300e727b08 100644 --- a/epan/dissectors/packet-iscsi.c +++ b/epan/dissectors/packet-iscsi.c @@ -1496,12 +1496,10 @@ dissect_iscsi_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint off /* the remainder of the cdb from the ahs */ tvb_memcpy(tvb, cdb_buf+16, ahs_cdb_offset, ahs_cdb_length); - cdb_tvb = tvb_new_real_data(cdb_buf, + cdb_tvb = tvb_new_child_real_data(tvb, cdb_buf, ahs_cdb_length+16, ahs_cdb_length+16); - tvb_set_child_real_data_tvbuff(tvb, cdb_tvb); - add_new_data_source(pinfo, cdb_tvb, "CDB+AHS"); } else { if(tvb_len>16){ |