diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2014-11-06 11:19:25 +0100 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2014-11-10 08:01:12 +0000 |
commit | ea167053ffc553b3a5f4ce6cbe0b78ecc8cd0dbe (patch) | |
tree | ceac2e98230e01eaf207a51ab98bd57afdddcead /ui/gtk/uat_gui.c | |
parent | d58567bd78abc1903191c9a955365b8d41f09496 (diff) |
Improved deregistering fields.
This improvement avoids use of deallocated memory (crash) if using a
deregistered field in display filter, color filter, custom column and
other cases when the field is used as "interesting field".
This functionality is currently used in http, imf and ldap preferences.
Also removed unused proto_registrar_n() as this does not work correctly
after deregistering fields.
Change-Id: I043e3bf7a98bd773c9801e712a012d1eab8a7f94
Reviewed-on: https://code.wireshark.org/review/5161
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/gtk/uat_gui.c')
-rw-r--r-- | ui/gtk/uat_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/uat_gui.c b/ui/gtk/uat_gui.c index 02c6d37447..9dd57caf17 100644 --- a/ui/gtk/uat_gui.c +++ b/ui/gtk/uat_gui.c @@ -777,7 +777,7 @@ static void uat_down_cb(GtkButton *button _U_, gpointer u) { static void uat_apply_changes(uat_t *uat) { if (uat->flags & UAT_AFFECTS_FIELDS) { /* Recreate list with new fields and redissect packets */ - packet_list_recreate (); + main_fields_changed (); } else { if (uat->flags & UAT_AFFECTS_DISSECTION) { /* Just redissect packets if we have any */ |