Instead of going over the Report segment twice, once to get the fields
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 4 Jan 2011 07:48:28 +0000 (07:48 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 4 Jan 2011 07:48:28 +0000 (07:48 +0000)
commite98b3ff0c998e58337af98f4c5ee1093bfe67622
tree8465b65fb2e236c701b47eb2d336835abbe331b6
parente17b17e98843886bb3e37fa807bdf1f1f921ccdb
Instead of going over the Report segment twice, once to get the fields
in the segment and once to put them into the protocol tree, just do it
once.  That also means we don't need to allocate an array for all the
reception claims, so we don't have to worry about the claim count (other
than making sure it's non-negative), and that we won't abort the
dissection until we run past the end of the packet.

(The rest of the dissector should be changed to work that way as well.)

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35356 f5534014-38df-0310-8fa8-9805f1628bb7
epan/dissectors/packet-ltp.c