diff options
author | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2016-10-06 10:26:27 -0400 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2016-10-14 17:00:06 +0000 |
commit | 38682523f9ce3ed378c782a848ba1ba5a6fe430f (patch) | |
tree | a1a3d20c6f1103a7f44f8ae45f48adb0cacf1843 /packaging/macosx/Scripts/wireshark-postinstall.sh | |
parent | 3a08906ca7c1e66037977f0e701af6a7c89bd4f9 (diff) | |
download | wireshark-38682523f9ce3ed378c782a848ba1ba5a6fe430f.tar.gz |
Lua: allow creating TVBs after calling other (Lua) dissectors.
Don't set `lua_tvb` (or any of the other global variables) to NULL after a
Lua dissector is called: it's possible that the caller is also a Lua dissector
which may want/need that (global) variable to still be set (to the value it
had before the sub-dissector was called).
This fixes the problem reported in:
https://ask.wireshark.org/questions/56110/lua-error-tvbs-can-only-be-created-and-used-in-dissectors
Making these variables not be a globals (as suggested at the top of
init_wslua.c) might be a better solution--for another day.
Change-Id: I14fb8ec35b62abeda3f3471a323b88c80537a06e
Reviewed-on: https://code.wireshark.org/review/18095
Petri-Dish: Jeff Morriss <jeff.morriss.ws@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Tested-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'packaging/macosx/Scripts/wireshark-postinstall.sh')
0 files changed, 0 insertions, 0 deletions