diff options
Diffstat (limited to 'epan/dissectors/packet-smb.c')
-rw-r--r-- | epan/dissectors/packet-smb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-smb.c b/epan/dissectors/packet-smb.c index 14472a324b..2f1c25bb74 100644 --- a/epan/dissectors/packet-smb.c +++ b/epan/dissectors/packet-smb.c @@ -2139,8 +2139,7 @@ dissect_negprot_request(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, /* XXX - what if this runs past bc? */ tvb_ensure_bytes_exist(tvb, offset+1, 1); - len = tvb_strsize(tvb, offset+1); - str = tvb_get_ptr(tvb, offset+1, len); + str = tvb_get_const_stringz(tvb, offset+1, &len); if(tr){ dit = proto_tree_add_text(tr, tvb, offset, len+1, |