git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
073fdc5
)
r23555: Fix some uninitialiazed variable uses.
author
Jeremy Allison
<jra@samba.org>
Wed, 20 Jun 2007 18:05:48 +0000
(18:05 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:23:28 +0000
(12:23 -0500)
Jeremy
source/rpcclient/cmd_echo.c
patch
|
blob
|
history
diff --git
a/source/rpcclient/cmd_echo.c
b/source/rpcclient/cmd_echo.c
index d9d14247f4d1b02156e1e90d5ac08a3ca56473a4..f3fbd3737a86218bf346f87c83c3cf0870b64b3a 100644
(file)
--- a/
source/rpcclient/cmd_echo.c
+++ b/
source/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);
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);
}
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++)
}
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);
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;
}
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);
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;
}
goto done;
}