From: Stefan Metzmacher Date: Fri, 24 Aug 2012 06:27:47 +0000 (+0200) Subject: s4:librpc/rpc: also call dcerpc_schedule_io_trigger() after bind and alter_context... X-Git-Tag: samba-4.0.0beta7~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0bd0ad967d1b5f82cbbd2df8fcb8a54d1ed5db40;p=thirdparty%2Fsamba.git s4:librpc/rpc: also call dcerpc_schedule_io_trigger() after bind and alter_context responses metze --- diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c index 759397971a3..331a6b018ef 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; }