mirror of
https://github.com/samba-team/samba.git
synced 2025-12-04 08:23:50 +03:00
r13544: -O1 janitor work :-)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
e755155b0e
commit
a95d7d7222
@@ -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);
|
rpcstr_pull_unistr2_fstring(workstation, &q_u->sam_id.client.login.uni_comp_name);
|
||||||
|
|
||||||
become_root();
|
become_root();
|
||||||
secrets_restore_schannel_session_info(p->pipe_state_mem_ctx,
|
ret = secrets_restore_schannel_session_info(
|
||||||
workstation,
|
p->pipe_state_mem_ctx, workstation, &p->dc);
|
||||||
&p->dc);
|
|
||||||
unbecome_root();
|
unbecome_root();
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
return NT_STATUS_INVALID_HANDLE;
|
return NT_STATUS_INVALID_HANDLE;
|
||||||
@@ -730,8 +729,8 @@ static NTSTATUS _net_sam_logon_internal(pipes_struct *p,
|
|||||||
BOOL ret;
|
BOOL ret;
|
||||||
|
|
||||||
become_root();
|
become_root();
|
||||||
secrets_restore_schannel_session_info(p->pipe_state_mem_ctx,
|
ret = secrets_restore_schannel_session_info(
|
||||||
nt_workstation,
|
p->pipe_state_mem_ctx, nt_workstation,
|
||||||
&p->dc);
|
&p->dc);
|
||||||
unbecome_root();
|
unbecome_root();
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
|
|||||||
Reference in New Issue
Block a user