]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Remove dptr_close() from reply_fclose().
authorJeremy Allison <jra@samba.org>
Wed, 17 Jul 2019 20:37:02 +0000 (13:37 -0700)
committerRalph Boehme <slow@samba.org>
Tue, 6 Aug 2019 14:23:35 +0000 (14:23 +0000)
Now we're handle-based close_file() already does
what is needed to shut down directory enumeration.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/reply.c

index c6328fce85ba181430ccda6ee2781e7d847986ed..32121a322a291b2d5660c54388221065c773543d 100644 (file)
@@ -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);