aboutsummaryrefslogtreecommitdiffstats
path: root/packet-icq.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-03-27 02:01:31 +0000
committerGuy Harris <guy@alum.mit.edu>2001-03-27 02:01:31 +0000
commit7d274106ec3d7e5f58090ee00d7af873174f7c27 (patch)
treea6db8b171215006938cf474b4f369032d937a1d8 /packet-icq.c
parent963080eb335b77305e75576e340dab07f0cd3beb (diff)
Added the created tvbuff into the original tvbuff chain so clean-up is
performed. svn path=/trunk/; revision=3193
Diffstat (limited to 'packet-icq.c')
-rw-r--r--packet-icq.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/packet-icq.c b/packet-icq.c
index 8fff21904d..5c53348b5d 100644
--- a/packet-icq.c
+++ b/packet-icq.c
@@ -1,7 +1,7 @@
/* packet-icq.c
* Routines for ICQ packet disassembly
*
- * $Id: packet-icq.c,v 1.27 2001/03/25 01:52:16 guy Exp $
+ * $Id: packet-icq.c,v 1.28 2001/03/27 02:01:31 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Johan Feyaerts
@@ -1795,13 +1795,18 @@ dissect_icqv5Client(tvbuff_t *tvb,
decr_tvb = tvb_new_real_data(decr_pd, pktsize, tvb_reported_length(tvb),
"Decrypted");
+ /* Add the tvbuff to the list of tvbuffs to which the tvbuff we
+ were handed refers, so it'll get cleaned up when that tvbuff
+ is cleaned up. */
+ tvb_set_child_real_data_tvbuff(tvb, decr_tvb);
+
/* Add the decrypted data to the data source list. */
pinfo->fd->data_src = g_slist_append(pinfo->fd->data_src, decr_tvb);
cmd = tvb_get_letohs(decr_tvb, ICQ5_CL_CMD);
if (check_col(pinfo->fd, COL_INFO))
- col_add_fstr(pinfo->fd, COL_INFO, "ICQv5 %s", findClientCmd(cmd));
+ col_add_fstr(pinfo->fd, COL_INFO, "ICQv5 %s", findClientCmd(cmd));
if (tree) {
ti = proto_tree_add_protocol_format(tree,