From af79076ca2b10f2f7fdaa973cbd52c9565511698 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 29 Mar 2006 23:25:04 +0000 Subject: r14782: Fix coverity bug #273, null deref. Jeremy. --- source/rpc_client/cli_echo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/rpc_client/cli_echo.c b/source/rpc_client/cli_echo.c index 89de6cec941..9818fad79b5 100644 --- a/source/rpc_client/cli_echo.c +++ b/source/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); } -- cgit