summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_echo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_echo.c b/source3/rpc_client/cli_echo.c
index 89de6cec94..9818fad79b 100644
--- a/source3/rpc_client/cli_echo.c
+++ b/source3/rpc_client/cli_echo.c
@@ -79,6 +79,9 @@ NTSTATUS rpccli_echo_data(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
if (out_data) {
*out_data = TALLOC(mem_ctx, size);
+ if (!*out_data) {
+ return NT_STATUS_NO_MEMORY;
+ }
memcpy(*out_data, r.data, size);
}