mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r11516: Fix a valgrind bug I introduce with queued requests
This commit is contained in:
parent
558c29971d
commit
3e4ab756f4
@ -856,13 +856,16 @@ req_done:
|
||||
req->state = RPC_REQUEST_DONE;
|
||||
DLIST_REMOVE(c->pending, req);
|
||||
data_blob_free(data);
|
||||
if (req->async.callback) {
|
||||
req->async.callback(req);
|
||||
}
|
||||
|
||||
if (c->request_queue != NULL) {
|
||||
/* We have to look at shipping further requests before calling
|
||||
* the async function, that one might close the pipe */
|
||||
dcerpc_ship_next_request(c);
|
||||
}
|
||||
|
||||
if (req->async.callback) {
|
||||
req->async.callback(req);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user