From 7abcd5bfe5050175d1e036dfb06fa835bf9c3108 Mon Sep 17 00:00:00 2001 From: etxrab Date: Thu, 14 May 2009 19:28:07 +0000 Subject: Apply some of the patches from: http://wiki.wireshark.org/Development/Optimization git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28363 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/dissectors/packet-isakmp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'epan/dissectors/packet-isakmp.c') diff --git a/epan/dissectors/packet-isakmp.c b/epan/dissectors/packet-isakmp.c index 1904b4267e..fe4b6d0223 100644 --- a/epan/dissectors/packet-isakmp.c +++ b/epan/dissectors/packet-isakmp.c @@ -631,9 +631,7 @@ decrypt_payload(tvbuff_t *tvb, packet_info *pinfo, const guint8 *buf, guint buf_ } gcry_cipher_close(decr_ctx); - encr_tvb = tvb_new_real_data(decrypted_data, buf_len, buf_len); - - tvb_set_child_real_data_tvbuff(tvb, encr_tvb); + encr_tvb = tvb_new_child_real_data(tvb, decrypted_data, buf_len, buf_len); /* Add the decrypted data to the data source list. */ add_new_data_source(pinfo, encr_tvb, "Decrypted IKE"); -- cgit v1.2.3