Author: metze Date: 2005-11-03 16:24:57 +0000 (Thu, 03 Nov 2005) New Revision: 11485
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11485 Log: prevent us from calling the request handler recursiv when the handler calls talloc_free(wrepl_socket) metze Modified: branches/SAMBA_4_0/source/libcli/wrepl/winsrepl.c Changeset: Modified: branches/SAMBA_4_0/source/libcli/wrepl/winsrepl.c =================================================================== --- branches/SAMBA_4_0/source/libcli/wrepl/winsrepl.c 2005-11-03 13:13:45 UTC (rev 11484) +++ branches/SAMBA_4_0/source/libcli/wrepl/winsrepl.c 2005-11-03 16:24:57 UTC (rev 11485) @@ -500,6 +500,9 @@ 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); }
