diff options
author | Volker Lendecke <vl@samba.org> | 2010-01-03 13:03:42 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-01-03 21:14:57 +0100 |
commit | 37ac16a88f20ef9a4a8d0fdfa1349a16f818696d (patch) | |
tree | 24ecab274779b59cc2223f5927a36b6cf272a263 /source3/torture | |
parent | 99f292479f1253c4cb1845461ae9edec8f155133 (diff) | |
download | samba-37ac16a88f20ef9a4a8d0fdfa1349a16f818696d.tar.gz samba-37ac16a88f20ef9a4a8d0fdfa1349a16f818696d.tar.bz2 samba-37ac16a88f20ef9a4a8d0fdfa1349a16f818696d.zip |
s3: Convert cli_ulogoff to the async API
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/torture.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 4dd595dbe6..f89f320631 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -5325,9 +5325,10 @@ static bool run_sesssetup_bench(int dummy) d_printf("\r%d ", (int)c->vuid); - if (!cli_ulogoff(c)) { + status = cli_ulogoff(c); + if (!NT_STATUS_IS_OK(status)) { d_printf("(%s) cli_ulogoff failed: %s\n", - __location__, cli_errstr(c)); + __location__, nt_errstr(status)); return false; } c->vuid = 0; @@ -6046,6 +6047,7 @@ static bool run_uid_regression_test(int dummy) int16_t old_vuid; int16_t old_cnum; bool correct = True; + NTSTATUS status; printf("starting uid regression test\n"); @@ -6058,9 +6060,10 @@ static bool run_uid_regression_test(int dummy) /* Ok - now save then logoff our current user. */ old_vuid = cli->vuid; - if (!cli_ulogoff(cli)) { + status = cli_ulogoff(cli); + if (!NT_STATUS_IS_OK(status)) { d_printf("(%s) cli_ulogoff failed: %s\n", - __location__, cli_errstr(cli)); + __location__, nt_errstr(status)); correct = false; goto out; } |