From a2f2a1d9f8f02bf4a4ffb38cc35a92cda770e4f4 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 17 Feb 2006 17:20:53 +0000 Subject: r13544: -O1 janitor work :-) (This used to be commit a95d7d722273863efa820674672393fe6e5a33b7) --- source3/rpc_server/srv_netlog_nt.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'source3/rpc_server') 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; -- cgit