From 0bd0ad967d1b5f82cbbd2df8fcb8a54d1ed5db40 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 24 Aug 2012 08:27:47 +0200 Subject: s4:librpc/rpc: also call dcerpc_schedule_io_trigger() after bind and alter_context responses metze --- source4/librpc/rpc/dcerpc.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source4/librpc') diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c index 759397971a..331a6b018e 100644 --- a/source4/librpc/rpc/dcerpc.c +++ b/source4/librpc/rpc/dcerpc.c @@ -1395,6 +1395,13 @@ static void dcerpc_request_recv_data(struct dcecli_connection *c, if (req->recv_handler != NULL) { dcerpc_req_dequeue(req); req->state = RPC_REQUEST_DONE; + + /* + * We have to look at shipping further requests before calling + * the async function, that one might close the pipe + */ + dcerpc_schedule_io_trigger(c); + req->recv_handler(req, raw_packet, pkt); return; } -- cgit