From a8ca5dc467c40619722b165a22fdf13b9b474c86 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 17 Jul 2019 13:55:25 -0700 Subject: [PATCH] s3: smbd: Remove dptr_close() from reply_findclose(). Now we're handle-based close_file() already does what is needed to shut down directory enumeration. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/smbd/trans2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 318676f76d1..2fafae56eb9 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -9727,7 +9727,7 @@ void reply_findclose(struct smb_request *req) dptr_closecnum(req->conn); } else { fsp = dptr_fetch_lanman2_fsp(sconn, dptr_num); - dptr_close(sconn, &dptr_num); + dptr_num = -1; if (fsp != NULL) { close_file(NULL, fsp, NORMAL_CLOSE); fsp = NULL; -- 2.47.3