diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-03-27 10:53:14 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-03-27 10:53:14 +0000 |
commit | fd61b593c05be2501b518cfc9347f641b36555eb (patch) | |
tree | da08a076463f246d128a0bf952373fa153793c3e /epan/dissectors/packet-tcp.c | |
parent | 573c77f51fa5926878702164fc1d070ae1886495 (diff) |
buildbot bugfix: add another tvb_ensure_bytes_exist()
svn path=/trunk/; revision=13932
Diffstat (limited to 'epan/dissectors/packet-tcp.c')
-rw-r--r-- | epan/dissectors/packet-tcp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-tcp.c b/epan/dissectors/packet-tcp.c index dbcf989d1e..814a8145ac 100644 --- a/epan/dissectors/packet-tcp.c +++ b/epan/dissectors/packet-tcp.c @@ -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); |