mirror of
https://github.com/samba-team/samba.git
synced 2025-11-25 00:23:52 +03:00
r22515: only steal pipe on success
metze
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
846cfcf44d
commit
acfaba06f5
@@ -889,9 +889,10 @@ NTSTATUS dcerpc_pipe_connect_recv(struct composite_context *c,
|
||||
struct pipe_conn_state *s;
|
||||
|
||||
status = composite_wait(c);
|
||||
s = talloc_get_type(c->private_data, struct pipe_conn_state);
|
||||
*pp = talloc_steal(mem_ctx, s->pipe);
|
||||
|
||||
if (NT_STATUS_IS_OK(status)) {
|
||||
s = talloc_get_type(c->private_data, struct pipe_conn_state);
|
||||
*pp = talloc_steal(mem_ctx, s->pipe);
|
||||
}
|
||||
talloc_free(c);
|
||||
return status;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user