diff options
author | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-05-20 03:20:20 +0000 |
---|---|---|
committer | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-05-20 03:20:20 +0000 |
commit | e0694e8d144157ff8f4acddba965d1c8137d8cac (patch) | |
tree | 346cf356fed7ab60d9eeb1938672c9108bf27ee6 | |
parent | 13521b9c6d58b1049045a19548d6f7bbed903d0f (diff) |
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
-rw-r--r-- | epan/dissectors/packet-smb.c | 6 |
1 files changed, 3 insertions, 3 deletions
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, |