Cache the "tcp_tree" with p_add_proto_data. Bug 9518.
authorMichael Mann <mmann78@netscape.net>
Tue, 22 Apr 2014 13:33:32 +0000 (09:33 -0400)
committerAnders Broman <a.broman58@gmail.com>
Tue, 22 Apr 2014 13:45:35 +0000 (13:45 +0000)
commit66a430349f01c66c45830dab0d959c07338fa341
treec2f1248169e7557d1255654b30d21e258cc83301
parent68eae53b0acf91db8791460c3aee49219143c312
Cache the "tcp_tree" with p_add_proto_data. Bug 9518.

This is more reliable than doing "tree math" and corrects the intention of 5470356154bec50b607e071606f49696429a0c7c which made the incorrect assumption that tcp_dissect_pdus will be called with the tree that is passed into a protocol's main dissection function (directly from TCP).

Change-Id: I6ffc2188420ab74784c7bc2c69aa79ff071c90b6
Reviewed-on: https://code.wireshark.org/review/1214
Reviewed-by: Anders Broman <a.broman58@gmail.com>
epan/dissectors/packet-tcp.c