From e0694e8d144157ff8f4acddba965d1c8137d8cac Mon Sep 17 00:00:00 2001 From: morriss Date: Fri, 20 May 2011 03:20:20 +0000 Subject: Use tvb_get_ephemeral_string() instead of tvb_get_ptr(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37322 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/dissectors/packet-smb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'epan/dissectors/packet-smb.c') diff --git a/epan/dissectors/packet-smb.c b/epan/dissectors/packet-smb.c index 8e07a25b3e..78318d2147 100644 --- a/epan/dissectors/packet-smb.c +++ b/epan/dissectors/packet-smb.c @@ -7687,7 +7687,7 @@ dissect_tree_connect_andx_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree /* XXX - what if this runs past bc? */ an_len = tvb_strsize(tvb, offset); CHECK_BYTE_COUNT(an_len); - an = tvb_get_ptr(tvb, offset, an_len); + an = tvb_get_ephemeral_string(tvb, offset, an_len); proto_tree_add_string(tree, hf_smb_service, tvb, offset, an_len, an); COUNT_BYTES(an_len); @@ -7806,7 +7806,7 @@ dissect_tree_connect_andx_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree /* XXX - what if this runs past bc? */ an_len = tvb_strsize(tvb, offset); CHECK_BYTE_COUNT(an_len); - an = tvb_get_ptr(tvb, offset, an_len); + an = tvb_get_ephemeral_string(tvb, offset, an_len); proto_tree_add_string(tree, hf_smb_service, tvb, offset, an_len, an); COUNT_BYTES(an_len); @@ -12234,7 +12234,7 @@ dissect_qfi_SMB_FILE_ALL_INFO(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tre /* this dissects the SMB_QUERY_FILE_STREAM_INFO as described in 4.2.16.10 of the SNIA CIFS spec - and 2.2.8.3.12 of the MS-CIFS spec + and 2.2.8.3.12 of the MS-CIFS spec */ int dissect_qfi_SMB_FILE_STREAM_INFO(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *parent_tree, -- cgit v1.2.3