Check for valid tcpd, as it may be NULL.

svn path=/trunk/; revision=38894
This commit is contained in:
Stig Bjørlykke 2011-09-06 09:18:09 +00:00
parent ad6be9beb8
commit 027bfdf5f3
1 changed files with 4 additions and 3 deletions

View File

@ -3830,9 +3830,10 @@ dissect_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
tcpd->ta->flags|=TCP_A_REUSED_PORTS;
}
item = proto_tree_add_uint(tcp_tree, hf_tcp_stream, tvb, offset, 0, tcpd->stream);
PROTO_ITEM_SET_GENERATED(item);
if (tcpd) {
item = proto_tree_add_uint(tcp_tree, hf_tcp_stream, tvb, offset, 0, tcpd->stream);
PROTO_ITEM_SET_GENERATED(item);
}
/* Do we need to calculate timestamps relative to the tcp-stream? */
if (tcp_calculate_ts) {