librpc/rpc/pipe_handle.c
authorStefan Metzmacher <metze@samba.org>
Sat, 21 Sep 2013 08:18:31 +0000 (10:18 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 4 Jun 2019 11:14:55 +0000 (13:14 +0200)
librpc/rpc/pipe_handle.c

index 80d4563ada6ef139056e365fad0eba8f3801b6c0..fc08944941362411565b845c76fb6e4595a8569b 100644 (file)
@@ -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;
 }