From 031f24694197ab2c90418c5a5285a2932b71e998 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 22 Jan 2009 17:53:22 +0100 Subject: [PATCH] Fix a segfault: rpccli_* expect the reply_pdu to always be initialized --- source3/rpc_client/cli_pipe.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index bf19160436b..cf2c833c28a 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; } -- 2.11.4.GIT