summaryrefslogtreecommitdiffstats
path: root/source/rpc_client
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-03-29 23:25:04 +0000
committerJeremy Allison <jra@samba.org>2006-03-29 23:25:04 +0000
commitaf79076ca2b10f2f7fdaa973cbd52c9565511698 (patch)
treea50df2cbe9f7f06dbbe038ef72af81846bf3bf97 /source/rpc_client
parentf075a5a6215887a42acb28863726ae80549c053d (diff)
downloadsamba-af79076ca2b10f2f7fdaa973cbd52c9565511698.tar.gz
samba-af79076ca2b10f2f7fdaa973cbd52c9565511698.tar.xz
samba-af79076ca2b10f2f7fdaa973cbd52c9565511698.zip
r14782: Fix coverity bug #273, null deref.
Jeremy.
Diffstat (limited to 'source/rpc_client')
-rw-r--r--source/rpc_client/cli_echo.c3
1 files changed, 3 insertions, 0 deletions
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);
}