smb2_tcon: avoid STATUS_PENDING responses for tree connect
authorStefan Metzmacher <metze@samba.org>
Thu, 24 Jan 2019 08:10:11 +0000 (09:10 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 28 Mar 2019 23:09:35 +0000 (23:09 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12844
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13698

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

index ebd31602efcd8b2349f2e81fe2c1ac29e756e0eb..5f103807eb35c988c31fb8a6ad07db6c92f3637c 100644 (file)
@@ -102,7 +102,11 @@ NTSTATUS smbd_smb2_request_process_tcon(struct smbd_smb2_request *req)
        }
        tevent_req_set_callback(subreq, smbd_smb2_request_tcon_done, req);
 
-       return smbd_smb2_request_pending_queue(req, subreq, 500);
+       /*
+        * Avoid sending a STATUS_PENDING message, it's very likely
+        * the client won't expect that.
+        */
+       return smbd_smb2_request_pending_queue(req, subreq, 0);
 }
 
 static void smbd_smb2_request_tcon_done(struct tevent_req *subreq)