From: Stefan Metzmacher Date: Sat, 21 Sep 2013 08:18:31 +0000 (+0200) Subject: librpc/rpc/pipe_handle.c X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=013331991b8256021ce0931d77d8d7fc29a9fd7c librpc/rpc/pipe_handle.c --- diff --git a/librpc/rpc/pipe_handle.c b/librpc/rpc/pipe_handle.c index 80d4563ada6e..fc0894494136 100644 --- a/librpc/rpc/pipe_handle.c +++ b/librpc/rpc/pipe_handle.c @@ -106,7 +106,13 @@ void dcerpc_pipe_handle_connection_disconnect( static int dcerpc_pipe_handle_destructor(struct dcerpc_pipe_handle *p) { + if (p->current_req) { + tevent_req_received(p->current_req); + p->current_req = NULL; + } + dcerpc_pipe_handle_connection_disconnect(p->pc); + return 0; }