Changeset 745 for trunk/server/source3/rpcclient/cmd_test.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source3/rpcclient/cmd_test.c
r414 r745 21 21 #include "includes.h" 22 22 #include "rpcclient.h" 23 #include "../librpc/gen_ndr/cli_lsa.h" 23 #include "../librpc/gen_ndr/ndr_lsa_c.h" 24 #include "rpc_client/cli_lsarpc.h" 25 #include "../librpc/gen_ndr/ndr_samr.h" 26 #include "../librpc/gen_ndr/winreg.h" 24 27 25 28 static NTSTATUS cmd_testme(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, … … 27 30 { 28 31 struct rpc_pipe_client *lsa_pipe = NULL, *samr_pipe = NULL; 29 NTSTATUS status = NT_STATUS_UNSUCCESSFUL ;32 NTSTATUS status = NT_STATUS_UNSUCCESSFUL, result; 30 33 struct policy_handle pol; 34 struct dcerpc_binding_handle *b; 31 35 32 36 d_printf("testme\n"); … … 46 50 } 47 51 52 b = lsa_pipe->binding_handle; 53 48 54 status = rpccli_lsa_open_policy(lsa_pipe, mem_ctx, False, 49 55 KEY_QUERY_VALUE, &pol); … … 52 58 goto done; 53 59 54 status = rpccli_lsa_Close(lsa_pipe, mem_ctx, &pol);60 status = dcerpc_lsa_Close(b, mem_ctx, &pol, &result); 55 61 56 62 if (!NT_STATUS_IS_OK(status)) 57 63 goto done; 64 if (!NT_STATUS_IS_OK(result)) { 65 status = result; 66 goto done; 67 } 58 68 59 69 done:
Note:
See TracChangeset
for help on using the changeset viewer.