[SCM] Samba Shared Repository - branch master updated - 9b3c38f4afe2b15159c8659b5916740493f7b60c

Volker Lendecke vlendec at samba.org
Sat Jan 17 10:28:06 GMT 2009


The branch, master has been updated
       via  9b3c38f4afe2b15159c8659b5916740493f7b60c (commit)
      from  c6b4f3526a262b22d5a97a3152f378778a497a26 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 9b3c38f4afe2b15159c8659b5916740493f7b60c
Author: Volker Lendecke <vl at samba.org>
Date:   Sat Jan 17 11:26:06 2009 +0100

    Slightly simplify the paths after rpc_api_pipe()

-----------------------------------------------------------------------

Summary of changes:
 source3/rpc_client/cli_pipe.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 99bd85a..28bbfa5 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -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)));
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list