From 4a976f1be7f36414ae9736983f5075456e11ac40 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Tue, 13 Dec 2011 04:01:33 +0000 Subject: Use tvb_new_child_real_data() instead of tvb_new_real_data() + tvb_set_child_real_data_tvbuff(). svn path=/trunk/; revision=40173 --- epan/dissectors/packet-ntlmssp.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'epan/dissectors/packet-ntlmssp.c') diff --git a/epan/dissectors/packet-ntlmssp.c b/epan/dissectors/packet-ntlmssp.c index 4a2dae064b..ec1c4052ce 100644 --- a/epan/dissectors/packet-ntlmssp.c +++ b/epan/dissectors/packet-ntlmssp.c @@ -2106,11 +2106,10 @@ decrypt_data_payload(tvbuff_t *tvb, int offset, guint32 encrypted_block_length, } /* Show the decrypted buffer in a new window */ - decr_tvb = tvb_new_real_data(packet_ntlmssp_info->decrypted_payload, - encrypted_block_length, - encrypted_block_length); + decr_tvb = tvb_new_child_real_data(tvb, packet_ntlmssp_info->decrypted_payload, + encrypted_block_length, + encrypted_block_length); - tvb_set_child_real_data_tvbuff(tvb, decr_tvb); pinfo->gssapi_decrypted_tvb = decr_tvb; } -- cgit v1.2.1