diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-04-25 12:36:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:51:35 -0500 |
commit | 7236bcf39de7f6dc5ccf54dc442b44b5b239ead0 (patch) | |
tree | ff394a7b18427990fc54a638c087d2793679da13 /source4/librpc/rpc | |
parent | 4b0820f9adac8a579f763ee8caf60bff52f2b84d (diff) | |
download | samba-7236bcf39de7f6dc5ccf54dc442b44b5b239ead0.tar.gz samba-7236bcf39de7f6dc5ccf54dc442b44b5b239ead0.tar.bz2 samba-7236bcf39de7f6dc5ccf54dc442b44b5b239ead0.zip |
r22515: only steal pipe on success
metze
(This used to be commit acfaba06f51184df5f1e99f0acd6fd0bd5f34afc)
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r-- | source4/librpc/rpc/dcerpc_connect.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/librpc/rpc/dcerpc_connect.c b/source4/librpc/rpc/dcerpc_connect.c index b1cdff9287..102441375b 100644 --- a/source4/librpc/rpc/dcerpc_connect.c +++ b/source4/librpc/rpc/dcerpc_connect.c @@ -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; } |