X-Git-Url: http://git.samba.org/?a=blobdiff_plain;f=librpc%2Frpc%2Fbinding_handle.c;h=78760635f85046896c9d01a74e4f192fd6598531;hb=dca0c05084050c76dbd73f19417faef0ccf2edf3;hp=067683c6c092837ce2593b6f0f7b39a06635021c;hpb=682994b912683c1936f42b176563f4fa4736da1f;p=metze%2Fsamba%2Fwip.git diff --git a/librpc/rpc/binding_handle.c b/librpc/rpc/binding_handle.c index 067683c6c092..78760635f850 100644 --- a/librpc/rpc/binding_handle.c +++ b/librpc/rpc/binding_handle.c @@ -764,6 +764,9 @@ static void dcerpc_binding_handle_call_params_done(struct tevent_req *subreq) subreq = NULL; if (!NT_STATUS_IS_OK(error)) { TALLOC_FREE(state->subreq); + dcerpc_pipe_handle_connection_disconnect(state->pc); + state->pc = NULL; + state->call_pipe = NULL; tevent_req_nterror(req, error); return; }