summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-06-20 18:05:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:28 -0500
commitd0daf1a0c1fb668e24c23ca1209c31e0de46fcf8 (patch)
tree2e923ca21bbd5ccd88aa4f9c792bcfda242f14ec
parentce02d0dfcbeeeec316578322257d998589090c6f (diff)
downloadsamba-d0daf1a0c1fb668e24c23ca1209c31e0de46fcf8.tar.gz
samba-d0daf1a0c1fb668e24c23ca1209c31e0de46fcf8.tar.bz2
samba-d0daf1a0c1fb668e24c23ca1209c31e0de46fcf8.zip
r23555: Fix some uninitialiazed variable uses.
Jeremy (This used to be commit dc287adff249e45a5584ec5fb9177e62152a7403)
-rw-r--r--source3/rpcclient/cmd_echo.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/rpcclient/cmd_echo.c b/source3/rpcclient/cmd_echo.c
index d9d14247f4..f3fbd3737a 100644
--- a/source3/rpcclient/cmd_echo.c
+++ b/source3/rpcclient/cmd_echo.c
@@ -63,12 +63,14 @@ static NTSTATUS cmd_echo_data(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
if ( (in_data = (uint8_t*)SMB_MALLOC(size)) == NULL ) {
printf("Failure to allocate buff of %d bytes\n",
size);
- goto done;
+ result = NT_STATUS_NO_MEMORY;
+ goto done;
}
if ( (out_data = (uint8_t*)SMB_MALLOC(size)) == NULL ) {
printf("Failure to allocate buff of %d bytes\n",
size);
- goto done;
+ result = NT_STATUS_NO_MEMORY;
+ goto done;
}
for (i = 0; i < size; i++)
@@ -111,6 +113,7 @@ static NTSTATUS cmd_echo_source_data(struct rpc_pipe_client *cli,
if ( (out_data = (uint8_t*)SMB_MALLOC(size)) == NULL ) {
printf("Failure to allocate buff of %d bytes\n",
size);
+ result = NT_STATUS_NO_MEMORY;
goto done;
}
@@ -148,6 +151,7 @@ static NTSTATUS cmd_echo_sink_data(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
if ( (in_data = (uint8_t*)SMB_MALLOC(size)) == NULL ) {
printf("Failure to allocate buff of %d bytes\n",
size);
+ result = NT_STATUS_NO_MEMORY;
goto done;
}