summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-07-31 07:48:16 +1000
committerAndrew Bartlett <abartlet@samba.org>2008-07-31 07:48:16 +1000
commit337752cfd82dc3dbdf918fd45eddd1aa8fb04576 (patch)
tree79aa04fbf294add814fb060f73a1909733b18ec4 /source4/torture
parent2a0677e514b5b9f91d32339077cc7e4187525c3b (diff)
parente45c3e127d389a2cb63879ca12bbbfed048f4eb1 (diff)
downloadsamba-337752cfd82dc3dbdf918fd45eddd1aa8fb04576.tar.gz
samba-337752cfd82dc3dbdf918fd45eddd1aa8fb04576.tar.bz2
samba-337752cfd82dc3dbdf918fd45eddd1aa8fb04576.zip
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 15d0951b74b46763024560f9cd012338473c5bc3)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/smb2/connect.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/source4/torture/smb2/connect.c b/source4/torture/smb2/connect.c
index 826bb2d719..e77e32ff7a 100644
--- a/source4/torture/smb2/connect.c
+++ b/source4/torture/smb2/connect.c
@@ -193,6 +193,7 @@ bool torture_smb2_connect(struct torture_context *torture)
{
TALLOC_CTX *mem_ctx = talloc_new(NULL);
struct smb2_tree *tree;
+ struct smb2_request *req;
struct smb2_handle h1, h2;
NTSTATUS status;
@@ -242,7 +243,15 @@ bool torture_smb2_connect(struct torture_context *torture)
return false;
}
- status = smb2_logoff(tree->session);
+ req = smb2_logoff_send(tree->session);
+ if (!req) {
+ printf("smb2_logoff_send() failed\n");
+ return false;
+ }
+
+ req->session = NULL;
+
+ status = smb2_logoff_recv(req);
if (!NT_STATUS_EQUAL(status, NT_STATUS_USER_SESSION_DELETED)) {
printf("Logoff should have disabled session - %s\n", nt_errstr(status));
return false;