Rework the change from r15595 a bit: when creating a TVB subset, always give
authorJeff Morriss <jeff.morriss.ws@gmail.com>
Wed, 19 Jun 2013 19:31:40 +0000 (19:31 -0000)
committerJeff Morriss <jeff.morriss.ws@gmail.com>
Wed, 19 Jun 2013 19:31:40 +0000 (19:31 -0000)
commita7bb5e1835cfd91722d0aef83e42e1a8a56f46e7
tree11d4d57d33a8d6dc9066baa2ea1764441f1bee01
parent6bc8d874fe2216034217cc155b95aad367b7ffd0
Rework the change from r15595 a bit: when creating a TVB subset, always give
the same captured and reported lengths so that we don't end up throwing
BoundsErrors ("Packet size limited during capture") when the packet is simply
malformed.

This fixes one of the issues reported in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8816

svn path=/trunk/; revision=50055
epan/dissectors/packet-ber.c