From: Jeremy Allison Date: Wed, 20 Jun 2007 18:05:48 +0000 (+0000) Subject: r23555: Fix some uninitialiazed variable uses. X-Git-Tag: samba-4.0.0alpha6~801^2~5582 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d0daf1a0c1fb668e24c23ca1209c31e0de46fcf8;p=thirdparty%2Fsamba.git r23555: Fix some uninitialiazed variable uses. Jeremy (This used to be commit dc287adff249e45a5584ec5fb9177e62152a7403) --- diff --git a/source3/rpcclient/cmd_echo.c b/source3/rpcclient/cmd_echo.c index d9d14247f4d..f3fbd3737a8 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; }