From d0daf1a0c1fb668e24c23ca1209c31e0de46fcf8 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 20 Jun 2007 18:05:48 +0000 Subject: r23555: Fix some uninitialiazed variable uses. Jeremy (This used to be commit dc287adff249e45a5584ec5fb9177e62152a7403) --- source3/rpcclient/cmd_echo.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source3/rpcclient') 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; } -- cgit