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)
committerKarolin Seeger <kseeger@samba.org>
Wed, 24 Apr 2019 07:00:29 +0000 (07:00 +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>
(cherry picked from commit 8a11da429bd3c89766f43c2bff681837a769987c)

source3/smbd/smb2_tcon.c

index 3a4a15d3059ecc3229d4163ba1499ebdb659792e..5efe020f1695acb342ec151d13b5b1fc8e693f3d 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)