aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-isakmp.c
diff options
context:
space:
mode:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2009-05-14 19:28:07 +0000
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2009-05-14 19:28:07 +0000
commit7abcd5bfe5050175d1e036dfb06fa835bf9c3108 (patch)
tree369cabcf0a2d69aa832b80c867d33e038c53e36f /epan/dissectors/packet-isakmp.c
parentf2c129036d394fbded583243c1363235ab74d254 (diff)
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
Diffstat (limited to 'epan/dissectors/packet-isakmp.c')
-rw-r--r--epan/dissectors/packet-isakmp.c4
1 files changed, 1 insertions, 3 deletions
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");