From 77ff35de861388d80146505bc07682c7da11adfe Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 9 Nov 2004 09:35:45 +0000 Subject: r3634: - fixed BASE-DISCONNECT test to force the async packets to be sent by waiting for a chkpath response - fixed open async send in BASE-DISCONNECT with these changes BASE-DISCONNECT crashes Samba4, as it was designed to do. I'll work on a fix :) (This used to be commit 25e01384647116d8ea0f20a6988fb8fe63218840) --- source4/torture/basic/disconnect.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source4/torture') diff --git a/source4/torture/basic/disconnect.c b/source4/torture/basic/disconnect.c index b5f6eb5311..683cdb81c8 100644 --- a/source4/torture/basic/disconnect.c +++ b/source4/torture/basic/disconnect.c @@ -59,8 +59,12 @@ static BOOL test_disconnect_open(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) status = smb_raw_open(cli->tree, mem_ctx, &io); CHECK_STATUS(status, NT_STATUS_OK); + io.ntcreatex.in.share_access = 0; req1 = smb_raw_open_send(cli->tree, &io); req2 = smb_raw_open_send(cli->tree, &io); + + status = smbcli_chkpath(cli->tree, "\\"); + CHECK_STATUS(status, NT_STATUS_OK); talloc_free(cli); @@ -106,6 +110,9 @@ static BOOL test_disconnect_lock(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) io.lockx.in.timeout = 3000; req = smb_raw_lock_send(cli->tree, &io); + status = smbcli_chkpath(cli->tree, "\\"); + CHECK_STATUS(status, NT_STATUS_OK); + talloc_free(cli); return True; -- cgit