summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/dir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c
index 0c40a509c4..7dd959f943 100644
--- a/source3/smbd/dir.c
+++ b/source3/smbd/dir.c
@@ -685,6 +685,7 @@ void dptr_CloseDir(files_struct *fsp)
* all resource deallocation.
*/
dptr_close_internal(fsp->dptr);
+ fsp->dptr = NULL;
}
}