diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-08-02 13:33:37 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-08-10 09:18:58 +0200 |
commit | a964309bf7631f4f6953e0d6556f8ed8e5300dcc (patch) | |
tree | a46c7167fb96910d86031178b9c991cf21e969db /source3/rpc_server | |
parent | af4dc306846a30a5a1201306cc2cbf4d494e16e7 (diff) | |
download | samba-a964309bf7631f4f6953e0d6556f8ed8e5300dcc.tar.gz samba-a964309bf7631f4f6953e0d6556f8ed8e5300dcc.tar.bz2 samba-a964309bf7631f4f6953e0d6556f8ed8e5300dcc.zip |
s3:rpc_server: make use of netsec_create_state()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_pipe.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c index 894f12c2e9..49a27b9b0b 100644 --- a/source3/rpc_server/srv_pipe.c +++ b/source3/rpc_server/srv_pipe.c @@ -462,8 +462,8 @@ static bool pipe_schannel_auth_bind(struct pipes_struct *p, */ become_root(); - status = schannel_get_creds_state(p, lp_ctx, - neg.oem_netbios_computer.a, &creds); + status = schannel_get_creds_state(p->mem_ctx, lp_ctx, + neg.oem_netbios_computer.a, &creds); unbecome_root(); talloc_unlink(p, lp_ctx); @@ -472,16 +472,12 @@ static bool pipe_schannel_auth_bind(struct pipes_struct *p, return False; } - schannel_auth = talloc_zero(p, struct schannel_state); + schannel_auth = netsec_create_state(p, creds, false /* not initiator */); + TALLOC_FREE(creds); if (!schannel_auth) { - TALLOC_FREE(creds); return False; } - schannel_auth->state = SCHANNEL_STATE_START; - schannel_auth->initiator = false; - schannel_auth->creds = creds; - /* * JRA. Should we also copy the schannel session key into the pipe session key p->session_key * here ? We do that for NTLMSSP, but the session key is already set up from the vuser |