git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fc7ee9
)
Fix a segfault: rpccli_* expect the reply_pdu to always be initialized
author
Volker Lendecke
<vl@samba.org>
Thu, 22 Jan 2009 16:53:22 +0000
(17:53 +0100)
committer
Volker Lendecke
<vl@samba.org>
Thu, 22 Jan 2009 16:54:16 +0000
(17:54 +0100)
source3/rpc_client/cli_pipe.c
patch
|
blob
|
history
diff --git
a/source3/rpc_client/cli_pipe.c
b/source3/rpc_client/cli_pipe.c
index bf19160436b417b9fafa004cdc123b47165f5507..cf2c833c28a25a07def49dc99bc509c79a3bdbd2 100644
(file)
--- 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;
}