mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
s4:librpc/rpc: also notify requests which are not shipped about a dead connection
metze
This commit is contained in:
parent
080549f467
commit
946eca438d
@ -1015,6 +1015,17 @@ static void dcerpc_connection_dead(struct dcecli_connection *conn, NTSTATUS stat
|
||||
}
|
||||
}
|
||||
|
||||
/* all requests, which are not shipped */
|
||||
while (conn->request_queue) {
|
||||
struct rpc_request *req = conn->request_queue;
|
||||
dcerpc_req_dequeue(req);
|
||||
req->state = RPC_REQUEST_DONE;
|
||||
req->status = status;
|
||||
if (req->async.callback) {
|
||||
req->async.callback(req);
|
||||
}
|
||||
}
|
||||
|
||||
talloc_set_destructor(conn, NULL);
|
||||
if (conn->free_skipped) {
|
||||
talloc_free(conn);
|
||||
|
Loading…
x
Reference in New Issue
Block a user