wireshark/plugins
Peter Wu 910bc034ab TRANSUM: fix crash when switching profiles
"output_rrpd" is NULL when the TRANSUM dissector is disabled (which is
the default behavior). When switching to a profile where the dissector
is enabled, redissection happens, but without invoking the init routine.
This leads to a crash when dissect_transum tries to query "output_rrpd".

Fix this by creating the map unconditionally. Use wmem_map_new_autoreset
since its contents should be erased for new capture files.

Bug: 13697
Change-Id: Iea897da8faf8042dffdc74327d9d1221e5fb155f
Fixes: v2.3.0rc0-1887-g78d56e5dd7 ("Cleanup transum post-dissector.")
Reviewed-on: https://code.wireshark.org/review/28474
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-27 03:20:09 +00:00
..
codecs/l16_mono l16_mono: fix a typo in CMakeLists.txt 2018-05-04 08:43:54 +00:00
epan TRANSUM: fix crash when switching profiles 2018-06-27 03:20:09 +00:00
wiretap/usbdump Remove autotools build system. 2018-04-18 03:46:17 +00:00
plugin.rc.in plugin.rc.in: Cleanup some unnecessary code 2017-12-17 11:47:07 +00:00