diff options
Diffstat (limited to 'xlators/nfs/server/src/netgroups.c')
-rw-r--r-- | xlators/nfs/server/src/netgroups.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/nfs/server/src/netgroups.c b/xlators/nfs/server/src/netgroups.c index 1003b72ef8c..8af9cb39f31 100644 --- a/xlators/nfs/server/src/netgroups.c +++ b/xlators/nfs/server/src/netgroups.c @@ -149,7 +149,9 @@ __deleted_entries_free_walk (dict_t *dict, char *key, data_t *val, void *tmp) void ng_file_deinit (struct netgroups_file *ngfile) { - GF_VALIDATE_OR_GOTO (GF_NG, ngfile, out); + if (!ngfile) { + return; + } __deleted_entries = dict_new (); GF_VALIDATE_OR_GOTO (GF_NG, __deleted_entries, out); |