struct sockaddr_storage addr;
NTSTATUS status;
- result = talloc(mem_ctx, struct rpc_pipe_client);
+ result = TALLOC_ZERO_P(mem_ctx, struct rpc_pipe_client);
if (result == NULL) {
return NT_STATUS_NO_MEMORY;
}
NTSTATUS status;
uint16_t port = 0;
+ *presult = NULL;
+
status = rpc_pipe_get_tcp_port(host, abstract_syntax, &port);
if (!NT_STATUS_IS_OK(status)) {
goto done;
int pipe_idx,
NTSTATUS *perr)
{
- struct rpc_pipe_client *result;
+ struct rpc_pipe_client *result = NULL;
*perr = NT_STATUS_PIPE_NOT_AVAILABLE;