aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-nfs.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2020-04-26 00:55:13 -0700
committerGuy Harris <gharris@sonic.net>2020-04-26 08:16:26 +0000
commit3abdb967aefc550de92f2ab0b5d3a49207b2ac58 (patch)
tree40be26fdb4d9d915cbf4d05ba475375badbf904d /epan/dissectors/packet-nfs.c
parente38e2df5a2b2bcc1c3fab83b9363049d2490d6f0 (diff)
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>
Diffstat (limited to 'epan/dissectors/packet-nfs.c')
-rw-r--r--epan/dissectors/packet-nfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-nfs.c b/epan/dissectors/packet-nfs.c
index cfc76d7bb6..af286bd889 100644
--- a/epan/dissectors/packet-nfs.c
+++ b/epan/dissectors/packet-nfs.c
@@ -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);