summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-ipsec.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-12-13 02:56:44 +0000
committerBill Meier <wmeier@newsguy.com>2011-12-13 02:56:44 +0000
commit199da73e21525ff6fd8eb2b177e35b5396e6275c (patch)
tree76369dff2572eec863c88bcdc62aa02cdcc5d4ae /epan/dissectors/packet-ipsec.c
parentc3da1f23d3793b4eb8ddf23f75a29d124c34b085 (diff)
downloadwireshark-199da73e21525ff6fd8eb2b177e35b5396e6275c.tar.gz
Prevent memory leakage of uncompress tvb and associated data buffer (step 1).
(tvb memory leak will actually remain until a bug in tvbuff.c is also fixed). svn path=/trunk/; revision=40171
Diffstat (limited to 'epan/dissectors/packet-ipsec.c')
-rw-r--r--epan/dissectors/packet-ipsec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ipsec.c b/epan/dissectors/packet-ipsec.c
index 0d90c6e11e..7cd714b0b4 100644
--- a/epan/dissectors/packet-ipsec.c
+++ b/epan/dissectors/packet-ipsec.c
@@ -1966,7 +1966,7 @@ dissect_ipcomp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
* CPIs, we don't know the algorithm beforehand; if we get it
* wrong, tvb_uncompress() returns NULL and nothing is displayed.
*/
- decomp = tvb_uncompress(data, 0, tvb_length(data));
+ decomp = tvb_child_uncompress(data, data, 0, tvb_length(data));
if (decomp) {
add_new_data_source(pinfo, decomp, "IPcomp inflated data");
if (!dissector_try_uint(ip_dissector_table, ipcomp.comp_nxt, decomp, pinfo, tree))