summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-08-06 12:53:05 +0200
committerStefan Metzmacher <metze@samba.org>2009-08-19 22:12:42 +0200
commitf00a3bfee7577c9ef82cb03b0580dccf0c7bc463 (patch)
treefa6bb9d2c0375f03154bbc5d4ba735e730fd57a8 /source3/smbd
parente621b7a52ee597cef9fbcd7b7af337e8749c4dca (diff)
downloadsamba-f00a3bfee7577c9ef82cb03b0580dccf0c7bc463.tar.gz
samba-f00a3bfee7577c9ef82cb03b0580dccf0c7bc463.tar.bz2
samba-f00a3bfee7577c9ef82cb03b0580dccf0c7bc463.zip
s3:smbd: store a dirptr on the files_struct for SMB2 Query Directory
metze
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/close.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c
index 788b0a7cec..1f2e4604c2 100644
--- a/source3/smbd/close.c
+++ b/source3/smbd/close.c
@@ -753,6 +753,10 @@ static NTSTATUS close_directory(struct smb_request *req, files_struct *fsp,
strerror(errno)));
}
+ if (fsp->dptr) {
+ dptr_CloseDir(fsp->dptr);
+ }
+
/*
* Do the code common to files and directories.
*/