]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Don't idle SMB1 directory scans after DPTR_IDLE_TIMEOUT.
authorJeremy Allison <jra@samba.org>
Mon, 8 Jul 2019 21:56:13 +0000 (14:56 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 9 Jul 2019 23:12:16 +0000 (23:12 +0000)
Only broken SMB1 clients leave directory scans hanging
and we shouldn't support that.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/smbd/conn_idle.c

index 52fa3ef2afa7e1d0477f69eddcb1e673117d3eb4..8fa42b2dd638e38d1411b0e1ad547b9d889c899e 100644 (file)
@@ -69,11 +69,6 @@ bool conn_idle_all(struct smbd_server_connection *sconn, time_t t)
                        return false;
                }
 
-               /* close dirptrs on connections that are idle */
-               if (age > DPTR_IDLE_TIMEOUT) {
-                       dptr_idlecnum(conn);
-               }
-
                if (conn->num_files_open > 0 || age < deadtime) {
                        return false;
                }