summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-05-07 11:32:32 +0200
committerStefan Metzmacher <metze@samba.org>2012-05-08 00:50:55 +0200
commitc68cba36aabd816fcf70fc800eb36e54a3164d55 (patch)
tree0b8f4e7f86a7ee3fcc61766984f8c6ed4bb3b2f1
parent0ded6f9cb71719605e06abea0883d2e59a1e8d39 (diff)
downloadsamba-c68cba36aabd816fcf70fc800eb36e54a3164d55.tar.gz
samba-c68cba36aabd816fcf70fc800eb36e54a3164d55.tar.bz2
samba-c68cba36aabd816fcf70fc800eb36e54a3164d55.zip
s4:torture/raw/session: make sure we got a reauth of the existing session
metze
-rw-r--r--source4/torture/raw/session.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/torture/raw/session.c b/source4/torture/raw/session.c
index 66092d20f7..3402693686 100644
--- a/source4/torture/raw/session.c
+++ b/source4/torture/raw/session.c
@@ -38,6 +38,7 @@ static bool test_session_reauth(struct torture_context *tctx,
char fname[256];
char buf[dlen+1];
bool ok = true;
+ uint16_t vuid1 = cli->session->vuid;
data = generate_random_str(tctx, dlen);
torture_assert(tctx, (data != NULL), "memory allocation failed");
@@ -65,6 +66,7 @@ static bool test_session_reauth(struct torture_context *tctx,
io.in.gensec_settings = lpcfg_gensec_settings(tctx, tctx->lp_ctx);
status = smb_composite_sesssetup(cli->session, &io);
torture_assert_ntstatus_ok_goto(tctx, status, ok, done, "setup2");
+ torture_assert_int_equal_goto(tctx, io.out.vuid, vuid1, ok, done, "setup2");
num = smbcli_read(cli->tree, fnum, &buf, 0, dlen);
torture_assert_int_equal_goto(tctx, num, dlen, ok, done, "read file");