diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2011-02-10 16:31:00 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2011-02-10 16:31:00 +0000 |
commit | 50e1634f4ccfc3efeb6d0c6c452f9b4070a960e0 (patch) | |
tree | 72d5f556239cdd05d77fbf05fdc389d22316d8e5 /epan/dissectors/packet-smb-pipe.c | |
parent | 7154ed56896eefff35426215eb98db8ea6d4f31a (diff) |
Modify proto_tree_add_bytes_format() and proto_tree_add_bytes_format_value()
so that if the start_ptr is NULL the bytes are extracted from the given TVB
using the given offset and length.
Replace a bunch of:
proto_tree_add_bytes_format*(tree, hf, tvb, offset, length, tvb_get_ptr(tvb, offset, length), [...])
with:
proto_tree_add_bytes_format*(tree, hf, tvb, offset, length, NULL, [...])
svn path=/trunk/; revision=35896
Diffstat (limited to 'epan/dissectors/packet-smb-pipe.c')
-rw-r--r-- | epan/dissectors/packet-smb-pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-smb-pipe.c b/epan/dissectors/packet-smb-pipe.c index 2b973f37e2..8a313edee6 100644 --- a/epan/dissectors/packet-smb-pipe.c +++ b/epan/dissectors/packet-smb-pipe.c @@ -627,7 +627,7 @@ add_logon_hours(tvbuff_t *tvb, int offset, int count, packet_info *pinfo _U_, TRUE); } else { proto_tree_add_bytes_format(tree, hf_index, tvb, - cptr, count, tvb_get_ptr(tvb, cptr, count), + cptr, count, NULL, "%s: %s (wrong length, should be 21, is %d", proto_registrar_get_name(hf_index), tvb_bytes_to_str(tvb, cptr, count), count); |