aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2005-03-29 15:38:11 +0000
committerGerald Combs <gerald@wireshark.org>2005-03-29 15:38:11 +0000
commit3056b9e17d8eb9e12febd34bcb8521722f77da31 (patch)
treebbf2c0b350a1d0f5304d0952d501b8a0ddf7ea7b /epan
parent9ead15a6eb16be93559d71b4083948338ab9d26e (diff)
Add a tvb_ensure_bytes_exist().
svn path=/trunk/; revision=13968
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-smb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-smb.c b/epan/dissectors/packet-smb.c
index 1be2f13424..8f7390ea35 100644
--- a/epan/dissectors/packet-smb.c
+++ b/epan/dissectors/packet-smb.c
@@ -8112,6 +8112,7 @@ dissect_nt_transaction_response(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tre
padcnt = po-offset;
if (padcnt > bc)
padcnt = bc;
+ tvb_ensure_bytes_exist(tvb, offset, padcnt);
proto_tree_add_item(tree, hf_smb_padding, tvb, offset, padcnt, TRUE);
COUNT_BYTES(padcnt);
}