summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_find.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/smb2_find.c')
-rw-r--r--source3/smbd/smb2_find.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/smbd/smb2_find.c b/source3/smbd/smb2_find.c
index 9a7738ab76..b10446c3f1 100644
--- a/source3/smbd/smb2_find.c
+++ b/source3/smbd/smb2_find.c
@@ -317,10 +317,7 @@ static struct tevent_req *smbd_smb2_find_send(TALLOC_CTX *mem_ctx,
}
if (in_flags & SMB2_CONTINUE_FLAG_REOPEN) {
- if (fsp->dptr) {
- dptr_CloseDir(fsp->dptr);
- fsp->dptr = NULL;
- }
+ dptr_CloseDir(fsp);
}
if (fsp->dptr == NULL) {