diff options
author | Volker Lendecke <vl@samba.org> | 2008-07-20 16:33:26 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-07-20 17:37:12 +0200 |
commit | a0793cc853d3bd43df2fc49df193a5fead6b01ab (patch) | |
tree | cb263a2210b4c0d43655eb47c74b9ed3d534d5ec /source/utils/net_rpc_join.c | |
parent | 513e69507676fc2227424362d24d8ea9615ea758 (diff) | |
download | samba-a0793cc853d3bd43df2fc49df193a5fead6b01ab.tar.gz |
Refactoring: Make get_schannel_session_key return NTSTATUS
Diffstat (limited to 'source/utils/net_rpc_join.c')
-rw-r--r-- | source/utils/net_rpc_join.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/utils/net_rpc_join.c b/source/utils/net_rpc_join.c index 609068e3d02..2599c28e9c8 100644 --- a/source/utils/net_rpc_join.c +++ b/source/utils/net_rpc_join.c @@ -73,12 +73,13 @@ NTSTATUS net_rpc_join_ok(struct net_context *c, const char *domain, } /* Setup the creds as though we're going to do schannel... */ - netlogon_pipe = get_schannel_session_key(cli, domain, &neg_flags, &ntret); + ntret = get_schannel_session_key(cli, domain, &neg_flags, + &netlogon_pipe); /* We return NT_STATUS_INVALID_NETWORK_RESPONSE if the server is refusing to negotiate schannel, but the creds were set up ok. That'll have to do. */ - if (!netlogon_pipe) { + if (!NT_STATUS_IS_OK(ntret)) { if (NT_STATUS_EQUAL(ntret, NT_STATUS_INVALID_NETWORK_RESPONSE)) { cli_shutdown(cli); return NT_STATUS_OK; |