mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
Slightly simplify the paths after rpc_api_pipe()
This commit is contained in:
parent
c6b4f3526a
commit
9b3c38f4af
@ -2175,13 +2175,11 @@ static NTSTATUS rpc_finish_spnego_ntlmssp_bind(struct rpc_pipe_client *cli,
|
||||
prs_init_empty(rbuf, talloc_tos(), UNMARSHALL);
|
||||
|
||||
nt_status = rpc_api_pipe(cli, &rpc_out, rbuf, RPC_ALTCONTRESP);
|
||||
prs_mem_free(&rpc_out);
|
||||
if (!NT_STATUS_IS_OK(nt_status)) {
|
||||
prs_mem_free(&rpc_out);
|
||||
return nt_status;
|
||||
}
|
||||
|
||||
prs_mem_free(&rpc_out);
|
||||
|
||||
/* Get the auth blob from the reply. */
|
||||
if(!smb_io_rpc_hdr("rpc_hdr ", phdr, rbuf, 0)) {
|
||||
DEBUG(0,("rpc_finish_spnego_ntlmssp_bind: Failed to unmarshall RPC_HDR.\n"));
|
||||
@ -2257,13 +2255,11 @@ NTSTATUS rpc_pipe_bind(struct rpc_pipe_client *cli,
|
||||
|
||||
/* send data on \PIPE\. receive a response */
|
||||
status = rpc_api_pipe(cli, &rpc_out, &rbuf, RPC_BINDACK);
|
||||
prs_mem_free(&rpc_out);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
prs_mem_free(&rpc_out);
|
||||
return status;
|
||||
}
|
||||
|
||||
prs_mem_free(&rpc_out);
|
||||
|
||||
DEBUG(3,("rpc_pipe_bind: %s bind request returned ok.\n",
|
||||
rpccli_pipe_txt(debug_ctx(), cli)));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user