mirror of
https://github.com/samba-team/samba.git
synced 2025-11-27 08:23:49 +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;
|
struct pipe_conn_state *s;
|
||||||
|
|
||||||
status = composite_wait(c);
|
status = composite_wait(c);
|
||||||
s = talloc_get_type(c->private_data, struct pipe_conn_state);
|
if (NT_STATUS_IS_OK(status)) {
|
||||||
*pp = talloc_steal(mem_ctx, s->pipe);
|
s = talloc_get_type(c->private_data, struct pipe_conn_state);
|
||||||
|
*pp = talloc_steal(mem_ctx, s->pipe);
|
||||||
|
}
|
||||||
talloc_free(c);
|
talloc_free(c);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user