summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-02-17 17:20:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:10:12 -0500
commita2f2a1d9f8f02bf4a4ffb38cc35a92cda770e4f4 (patch)
tree2e87ad872b56b811590e41e4b9e4578dd664d793 /source3
parent5f8a70d01e113838594b3cbe9314d04a9539ee37 (diff)
downloadsamba-a2f2a1d9f8f02bf4a4ffb38cc35a92cda770e4f4.tar.gz
samba-a2f2a1d9f8f02bf4a4ffb38cc35a92cda770e4f4.tar.bz2
samba-a2f2a1d9f8f02bf4a4ffb38cc35a92cda770e4f4.zip
r13544: -O1 janitor work :-)
(This used to be commit a95d7d722273863efa820674672393fe6e5a33b7)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_netlog_nt.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/source3/rpc_server/srv_netlog_nt.c b/source3/rpc_server/srv_netlog_nt.c
index 52f2c2e34c..109f936ec6 100644
--- a/source3/rpc_server/srv_netlog_nt.c
+++ b/source3/rpc_server/srv_netlog_nt.c
@@ -592,9 +592,8 @@ NTSTATUS _net_sam_logoff(pipes_struct *p, NET_Q_SAM_LOGOFF *q_u, NET_R_SAM_LOGOF
rpcstr_pull_unistr2_fstring(workstation, &q_u->sam_id.client.login.uni_comp_name);
become_root();
- secrets_restore_schannel_session_info(p->pipe_state_mem_ctx,
- workstation,
- &p->dc);
+ ret = secrets_restore_schannel_session_info(
+ p->pipe_state_mem_ctx, workstation, &p->dc);
unbecome_root();
if (!ret) {
return NT_STATUS_INVALID_HANDLE;
@@ -730,9 +729,9 @@ static NTSTATUS _net_sam_logon_internal(pipes_struct *p,
BOOL ret;
become_root();
- secrets_restore_schannel_session_info(p->pipe_state_mem_ctx,
- nt_workstation,
- &p->dc);
+ ret = secrets_restore_schannel_session_info(
+ p->pipe_state_mem_ctx, nt_workstation,
+ &p->dc);
unbecome_root();
if (!ret) {
return NT_STATUS_INVALID_HANDLE;