diff options
author | Volker Lendecke <vl@samba.org> | 2008-07-20 11:04:31 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-07-20 17:37:13 +0200 |
commit | ba2cb35ca5b335a8f33e012255b43b9cf9a04ecf (patch) | |
tree | dba99b6d1db02c165d12ad5bb54c4d0315cc1f85 /source3/libnet | |
parent | 44bdc98823bd85597803f1ca8f5d0282f2d724b3 (diff) | |
download | samba-ba2cb35ca5b335a8f33e012255b43b9cf9a04ecf.tar.gz samba-ba2cb35ca5b335a8f33e012255b43b9cf9a04ecf.tar.bz2 samba-ba2cb35ca5b335a8f33e012255b43b9cf9a04ecf.zip |
Refactoring: Change calling conventions for cli_rpc_pipe_open_schannel_with_key
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 78e9c937ff2d2e1b70cfed4121e17feb6efafda1)
Diffstat (limited to 'source3/libnet')
-rw-r--r-- | source3/libnet/libnet_join.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c index a095cb2dfa..814eebafd0 100644 --- a/source3/libnet/libnet_join.c +++ b/source3/libnet/libnet_join.c @@ -1044,15 +1044,13 @@ NTSTATUS libnet_join_ok(const char *netbios_domain_name, return NT_STATUS_OK; } - pipe_hnd = cli_rpc_pipe_open_schannel_with_key(cli, PI_NETLOGON, - PIPE_AUTH_LEVEL_PRIVACY, - netbios_domain_name, - netlogon_pipe->dc, - &status); + status = cli_rpc_pipe_open_schannel_with_key( + cli, &ndr_table_netlogon.syntax_id, PIPE_AUTH_LEVEL_PRIVACY, + netbios_domain_name, netlogon_pipe->dc, &pipe_hnd); cli_shutdown(cli); - if (!pipe_hnd) { + if (!NT_STATUS_IS_OK(status)) { DEBUG(0,("libnet_join_ok: failed to open schannel session " "on netlogon pipe to server %s for domain %s. " "Error was %s\n", |