nfs: Initialize the fs_cycle element of an nfs_name_snoop_t.

It has to be initialized to false, otherwise you get random misreported
cycles.

Change-Id: I1ffa1f8fae4883960ebf0522e44bc9e1378b2470
Reviewed-on: https://code.wireshark.org/review/36939
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
This commit is contained in:
Guy Harris 2020-04-26 00:55:13 -07:00 committed by Guy Harris
parent e38e2df5a2
commit 3abdb967ae
1 changed files with 1 additions and 0 deletions

View File

@ -1232,6 +1232,7 @@ nfs_name_snoop_add_name(int xid, tvbuff_t *tvb, int name_offset, int name_len, i
nns->full_name_len = 0;
nns->full_name = NULL;
nns->fs_cycle = false;
/* any old entry will be deallocated and removed */
g_hash_table_insert(nfs_name_snoop_unmatched, GINT_TO_POINTER(xid), nns);