1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r11485: prevent us from calling the request handler recursiv when

the handler calls talloc_free(wrepl_socket)

metze
(This used to be commit bf0b96f057)
This commit is contained in:
Stefan Metzmacher 2005-11-03 16:24:57 +00:00 committed by Gerald (Jerry) Carter
parent b69e508381
commit 536e68dbee

View File

@ -500,6 +500,9 @@ static void wrepl_request_trigger_handler(struct event_context *ev, struct timed
struct timeval t, void *ptr)
{
struct wrepl_request *req = talloc_get_type(ptr, struct wrepl_request);
struct wrepl_socket *wrepl_socket = req->wrepl_socket;
DLIST_REMOVE(wrepl_socket->send_queue, req);
DLIST_REMOVE(wrepl_socket->recv_queue, req);
if (req->async.fn) {
req->async.fn(req);
}