diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-09-23 02:14:26 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-09-23 11:30:01 +0200 |
commit | 70b0c8f79a427a3227ce01bc930870771076bff7 (patch) | |
tree | bfe3f5fd355e64b3fd0f62f3bdb30fcb9e49ed50 /source4/torture/rpc | |
parent | 05e0966d85e7b6c61c88edb4633d0dda40959f01 (diff) | |
download | samba-70b0c8f79a427a3227ce01bc930870771076bff7.tar.gz samba-70b0c8f79a427a3227ce01bc930870771076bff7.tar.bz2 samba-70b0c8f79a427a3227ce01bc930870771076bff7.zip |
RPC-PAC: loop in gensec_update() untill the server side is ready
metze
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/remote_pac.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source4/torture/rpc/remote_pac.c b/source4/torture/rpc/remote_pac.c index 25368d239a..a4111d1c3e 100644 --- a/source4/torture/rpc/remote_pac.c +++ b/source4/torture/rpc/remote_pac.c @@ -116,16 +116,12 @@ static bool test_PACVerify(struct torture_context *tctx, torture_assert_ntstatus_ok(tctx, status, "gensec_update (client) failed"); } - if (client_to_server.length == 0) { - break; - } - status = gensec_update(gensec_server_context, tmp_ctx, client_to_server, &server_to_client); if (!NT_STATUS_EQUAL(status, NT_STATUS_MORE_PROCESSING_REQUIRED)) {; torture_assert_ntstatus_ok(tctx, status, "gensec_update (server) failed"); } - if (server_to_client.length == 0) { + if (NT_STATUS_IS_OK(status)) { break; } } while (1); |