Lua accessor for Protocol field type gets wrong data
authorHadriel Kaplan <hadriel@128technology.com>
Tue, 23 Dec 2014 00:14:49 +0000 (19:14 -0500)
committerHadriel Kaplan <hadrielk@yahoo.com>
Thu, 25 Dec 2014 15:14:36 +0000 (15:14 +0000)
commitceeeea089ac68366d520eaf332fed4231ce8831e
treef5476eb52acb94bac95c40521e9d7337b28e5211
parent2391a436e60b4a1823be983583d5ef34a7faf6de
Lua accessor for Protocol field type gets wrong data

When a Lua dissector/tap accesses the value of a Field of FT_PROTOCOL ftype, the
returned ByteArray contains the wrong data.  Also, calling such a field's
tostring() method returns a string of "(unknown)" instead of the hex of the
data.

Bug: 10801
Change-Id: I8a0642dc0e41af444d211bbe4106cd21207084a6
Reviewed-on: https://code.wireshark.org/review/6003
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Hadriel Kaplan <hadrielk@yahoo.com>
Tested-by: Hadriel Kaplan <hadrielk@yahoo.com>
epan/wslua/wslua_field.c