forked from osmocom/wireshark
From Evan Huus:
There is no guarantee that uat->category is non-null, so check whether it's null before checking whether it's UAT_CAT_FIELDS or not. Fixes bug 7444. #BACKPORT svn path=/trunk/; revision=43602
This commit is contained in:
parent
88c8b9218d
commit
1b1fbd24e7
1 changed files with 1 additions and 1 deletions
|
@ -716,7 +716,7 @@ static void uat_down_cb(GtkButton *button _U_, gpointer u) {
|
|||
}
|
||||
|
||||
static void uat_apply_changes(uat_t *uat) {
|
||||
if(strcmp(uat->category, UAT_CAT_FIELDS) == 0) {
|
||||
if(uat->category && strcmp(uat->category, UAT_CAT_FIELDS) == 0) {
|
||||
/* Recreate list with new fields and redissect packets */
|
||||
new_packet_list_recreate ();
|
||||
} else if(cfile.state != FILE_CLOSED) {
|
||||
|
|
Loading…
Reference in a new issue