summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-01-22 17:53:22 +0100
committerVolker Lendecke <vl@samba.org>2009-01-22 17:54:16 +0100
commit031f24694197ab2c90418c5a5285a2932b71e998 (patch)
tree83db2aa1e4d313842c4c28e8d7f5cb49b316aa87 /source3
parent7fc7ee9331d0539359ad88c527f59d5fdf212209 (diff)
downloadsamba-031f24694197ab2c90418c5a5285a2932b71e998.tar.gz
samba-031f24694197ab2c90418c5a5285a2932b71e998.tar.bz2
samba-031f24694197ab2c90418c5a5285a2932b71e998.zip
Fix a segfault: rpccli_* expect the reply_pdu to always be initialized
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/cli_pipe.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index bf19160436..cf2c833c28 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;
}