Wireshark-commits: [Wireshark-commits] master 1ea6b4f: prefs: fix crash with -o column.foo:x
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=1ea6b4fe2e4b6e068694301c4ffc731e2309c797
Submitter: Peter Wu (peter@xxxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
1ea6b4f by Peter Wu (peter@xxxxxxxxxxxxx):
prefs: fix crash with -o column.foo:x
The gui.column module is somehow special, it has no name since it is
part of the gui module. This causes a crash when trying to invoke
`strcmp(module->name /* NULL */, "mgcp")`.
Always look up prefs inside gui_column_module when the given prefs
module is "column" instead of matching two specific names.
Change-Id: I47e354d11b6fd01818b0627a249b506a8f9510cc
Reviewed-on: https://code.wireshark.org/review/16937
Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
Actions performed:
from 2a80b40 netlink-route: decode more items (sync with Linux 4.7)
adds 1ea6b4f prefs: fix crash with -o column.foo:x
Summary of changes:
epan/prefs.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)