librpc/rpc/binding_handle.c disconnect pipe before error
authorStefan Metzmacher <metze@samba.org>
Sat, 21 Sep 2013 07:49:15 +0000 (09:49 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 4 Jun 2019 11:14:55 +0000 (13:14 +0200)
librpc/rpc/binding_handle.c

index 067683c6c092837ce2593b6f0f7b39a06635021c..78760635f85046896c9d01a74e4f192fd6598531 100644 (file)
@@ -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;
        }