buildbot bugfix: add another tvb_ensure_bytes_exist()

svn path=/trunk/; revision=13932
This commit is contained in:
Ulf Lamping 2005-03-27 10:53:14 +00:00
parent 573c77f51f
commit fd61b593c0
1 changed files with 1 additions and 0 deletions

View File

@ -3004,6 +3004,7 @@ dissect_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* There's more than just the fixed-length header. Decode the
options. */
optlen = tcph->th_hlen - TCPH_MIN_LEN; /* length of options, in bytes */
tvb_ensure_bytes_exist(tvb, offset + 20, optlen);
if (tcp_tree != NULL) {
tf = proto_tree_add_text(tcp_tree, tvb, offset + 20, optlen,
"Options: (%u bytes)", optlen);