1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

r19587: Fix indentation and correctly set error string when completing

a composite call - don't leave it unset.

rafal
(This used to be commit 8bd57beca19bd2c76d58b64ddd12553b0adce595)
This commit is contained in:
Rafal Szczesniak 2006-11-06 22:06:12 +00:00 committed by Gerald (Jerry) Carter
parent cde653b55a
commit 4e61cee33c

View File

@ -134,7 +134,6 @@ static void continue_pipe_connect(struct composite_context *ctx)
/* receive result of rpc pipe connection */
c->status = dcerpc_pipe_connect_b_recv(ctx, c, &s->r.out.dcerpc_pipe);
s->r.out.error_string = NULL;
composite_done(c);
}
@ -173,8 +172,11 @@ static NTSTATUS libnet_RpcConnectSrv_recv(struct composite_context *c,
} else if (r->in.dcerpc_iface == &dcerpc_table_lsarpc) {
ctx->lsa.pipe = talloc_reference(ctx, r->out.dcerpc_pipe);
}
r->out.error_string = talloc_strdup(mem_ctx, "Success");
} else {
r->out.error_string = talloc_steal(mem_ctx, s->r.out.error_string);
r->out.error_string = talloc_asprintf(mem_ctx, "Error: %s", nt_errstr(status));
}
talloc_free(c);