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:
Guy Harris 2012-07-07 22:40:02 +00:00
parent 88c8b9218d
commit 1b1fbd24e7

View file

@ -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) {