diff options
-rw-r--r-- | source3/rpc_client/cli_pipe.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 25c7a44cea..4d8a9d3b03 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -2243,18 +2243,11 @@ static NTSTATUS rpccli_schannel_bind_data(TALLOC_CTX *mem_ctx, goto fail; } - schannel_auth = talloc_zero(result, struct schannel_state); + schannel_auth = netsec_create_state(result, creds, true /* initiator */); if (schannel_auth == NULL) { goto fail; } - schannel_auth->state = SCHANNEL_STATE_START; - schannel_auth->initiator = true; - schannel_auth->creds = netlogon_creds_copy(schannel_auth, creds); - if (schannel_auth->creds == NULL) { - goto fail; - } - result->auth_ctx = schannel_auth; *presult = result; return NT_STATUS_OK; |