[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha6-89-g031f246

Volker Lendecke vlendec at samba.org
Thu Jan 22 16:54:45 GMT 2009


The branch, master has been updated
       via  031f24694197ab2c90418c5a5285a2932b71e998 (commit)
      from  7fc7ee9331d0539359ad88c527f59d5fdf212209 (commit)

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


- Log -----------------------------------------------------------------
commit 031f24694197ab2c90418c5a5285a2932b71e998
Author: Volker Lendecke <vl at samba.org>
Date:   Thu Jan 22 17:53:22 2009 +0100

    Fix a segfault: rpccli_* expect the reply_pdu to always be initialized

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

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


Changeset truncated at 500 lines:

diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index bf19160..cf2c833 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -2367,6 +2367,11 @@ NTSTATUS rpc_api_pipe_req_recv(struct async_req *req, TALLOC_CTX *mem_ctx,
 	NTSTATUS status;
 
 	if (async_req_is_error(req, &status)) {
+		/*
+		 * We always have to initialize to reply pdu, even if there is
+		 * none. The rpccli_* caller routines expect this.
+		 */
+		prs_init_empty(reply_pdu, mem_ctx, UNMARSHALL);
 		return status;
 	}
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list