mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r23555: Fix some uninitialiazed variable uses.
Jeremy
This commit is contained in:
parent
073fdc5a58
commit
dc287adff2
@ -63,11 +63,13 @@ 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);
|
||||
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);
|
||||
result = NT_STATUS_NO_MEMORY;
|
||||
goto done;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user