mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
s3: smbd: Prepare for SMB1 directory handle opens in reply_findclose()
Call close_file() on any SMB1 directory handle once the dptr is closed. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
b055f1ac7b
commit
61c239fcec
@ -9634,6 +9634,7 @@ void reply_findclose(struct smb_request *req)
|
||||
{
|
||||
int dptr_num;
|
||||
struct smbd_server_connection *sconn = req->sconn;
|
||||
files_struct *fsp = NULL;
|
||||
|
||||
START_PROFILE(SMBfindclose);
|
||||
|
||||
@ -9654,7 +9655,12 @@ void reply_findclose(struct smb_request *req)
|
||||
if (dptr_num == -1) {
|
||||
dptr_closecnum(req->conn);
|
||||
} else {
|
||||
fsp = dptr_fsp(sconn, dptr_num);
|
||||
dptr_close(sconn, &dptr_num);
|
||||
if (fsp != NULL) {
|
||||
close_file(NULL, fsp, NORMAL_CLOSE);
|
||||
fsp = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
reply_outbuf(req, 0, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user