1
0
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:
Volker Lendecke 2005-11-05 09:32:15 +00:00 committed by Gerald (Jerry) Carter
parent 558c29971d
commit 3e4ab756f4

View File

@ -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);
}
}
/*