From: Jeremy Allison Date: Wed, 17 Jul 2019 20:37:02 +0000 (-0700) Subject: s3: smbd: Remove dptr_close() from reply_fclose(). X-Git-Tag: tdb-1.4.2~341 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=63e1220a2bb984a89b2f6e20c37f16d15f1a8814;p=thirdparty%2Fsamba.git s3: smbd: Remove dptr_close() from reply_fclose(). 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 --- diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index c6328fce85b..32121a322a2 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -2184,10 +2184,10 @@ void reply_fclose(struct smb_request *req) fsp = dptr_fetch_fsp(sconn, status+12,&dptr_num); if(fsp != NULL) { - /* Close the dptr - we know it's gone */ - dptr_close(sconn, &dptr_num); + /* Close the file - we know it's gone */ close_file(NULL, fsp, NORMAL_CLOSE); fsp = NULL; + dptr_num = -1; } reply_outbuf(req, 1, 0);