svn commit: samba r14712 - in
branches/SAMBA_4_0/source/torture/rpc: .
abartlet at samba.org
abartlet at samba.org
Sat Mar 25 10:59:20 GMT 2006
Author: abartlet
Date: 2006-03-25 10:59:20 +0000 (Sat, 25 Mar 2006)
New Revision: 14712
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14712
Log:
Do not proceed in event of failure to obtain a policy handle.
This makes the log results much easier to understand.
Andrew Bartlett
Modified:
branches/SAMBA_4_0/source/torture/rpc/session_key.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/session_key.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/session_key.c 2006-03-25 10:34:51 UTC (rev 14711)
+++ branches/SAMBA_4_0/source/torture/rpc/session_key.c 2006-03-25 10:59:20 UTC (rev 14712)
@@ -179,14 +179,14 @@
return False;
}
- if (!test_lsa_OpenPolicy2(p, mem_ctx, &handle)) {
- ret = False;
+ if (test_lsa_OpenPolicy2(p, mem_ctx, &handle)) {
+ if (!test_CreateSecret_basic(p, mem_ctx, handle)) {
+ ret = False;
+ }
+ } else {
+ return False;
}
- if (!test_CreateSecret_basic(p, mem_ctx, handle)) {
- ret = False;
- }
-
talloc_free(mem_ctx);
return ret;
More information about the samba-cvs
mailing list