Wireshark-commits: [Wireshark-commits] master 5112d1e: Lua: Fix add and remove Fields when reload L
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=5112d1ec27e0b37fe4194fbc627877e28c027261
Submitter: Stig Bjørlykke (stig@xxxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
5112d1e by Stig Bjørlykke (stig@xxxxxxxxxxxxx):
Lua: Fix add and remove Fields when reload Lua plugins
Reset wslua_dfilter and remove the Field tap_listener when
reloading plugins.
Check for tap listeners in rescan_packets() after ws_epan_new()
because Lua may register the Lua field tap when adding Fields.
Bug: 12328
Change-Id: Ibbd8339033132c6f3b61d7e9c9ced9ed2b9affec
Reviewed-on: https://code.wireshark.org/review/14871
Petri-Dish: Stig Bjørlykke <stig@xxxxxxxxxxxxx>
Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
Reviewed-by: Stig Bjørlykke <stig@xxxxxxxxxxxxx>
Actions performed:
from 76adb4c ZigBee R22 Added support for new Link Power Delta command
adds 5112d1e Lua: Fix add and remove Fields when reload Lua plugins
Summary of changes:
epan/wslua/init_wslua.c | 1 +
epan/wslua/wslua.h | 1 +
epan/wslua/wslua_field.c | 31 ++++++++++++++++++-------------
file.c | 6 ++++++
4 files changed, 26 insertions(+), 13 deletions(-)