]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Remove dptr_close() from call_trans2findnext().
authorJeremy Allison <jra@samba.org>
Wed, 17 Jul 2019 20:54:43 +0000 (13:54 -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/trans2.c

index cddcd805578fe3b627200804837fa33358b9b701..318676f76d16fca534ef5e0e597b68180c18aebd 100644 (file)
@@ -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;
        }