From 779dd3f1e6bc462057a8f367d6c7cbb5cd75d4ba Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 17 Jul 2019 13:54:43 -0700 Subject: [PATCH] s3: smbd: Remove dptr_close() from call_trans2findnext(). 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 cddcd805578..318676f76d1 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -3492,7 +3492,7 @@ total_data=%u (should be %u)\n", (unsigned int)total_data, (unsigned int)IVAL(pd /* Check if we can close the fsp->dptr */ if(close_after_request || (finished && close_if_end)) { DEBUG(5,("call_trans2findnext: closing dptr_num = %d\n", dptr_num)); - dptr_close(sconn, &dptr_num); /* This frees up the saved mask */ + dptr_num = -1; close_file(NULL, fsp, NORMAL_CLOSE); fsp = NULL; } -- 2.47.3