summaryrefslogtreecommitdiff
path: root/source3/libnet
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-07-20 16:33:26 +0200
committerVolker Lendecke <vl@samba.org>2008-07-20 17:37:12 +0200
commitb8fc15be950072846d23e3836d4d0289c10156f2 (patch)
tree23d17fd53297e37faafc025015f036585abcda3c /source3/libnet
parent1f854d1db709ea0eeac9f5469fda053bd38e72c4 (diff)
downloadsamba-b8fc15be950072846d23e3836d4d0289c10156f2.tar.gz
samba-b8fc15be950072846d23e3836d4d0289c10156f2.tar.bz2
samba-b8fc15be950072846d23e3836d4d0289c10156f2.zip
Refactoring: Make get_schannel_session_key return NTSTATUS
(This used to be commit a0793cc853d3bd43df2fc49df193a5fead6b01ab)
Diffstat (limited to 'source3/libnet')
-rw-r--r--source3/libnet/libnet_join.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c
index 40637afabd..a095cb2dfa 100644
--- a/source3/libnet/libnet_join.c
+++ b/source3/libnet/libnet_join.c
@@ -1024,10 +1024,9 @@ NTSTATUS libnet_join_ok(const char *netbios_domain_name,
return status;
}
- netlogon_pipe = get_schannel_session_key(cli,
- netbios_domain_name,
- &neg_flags, &status);
- if (!netlogon_pipe) {
+ status = get_schannel_session_key(cli, netbios_domain_name,
+ &neg_flags, &netlogon_pipe);
+ if (!NT_STATUS_IS_OK(status)) {
if (NT_STATUS_EQUAL(status, NT_STATUS_INVALID_NETWORK_RESPONSE)) {
cli_shutdown(cli);
return NT_STATUS_OK;