1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r10682: force the free of the fd event first when a stream terminates. That ensures

destructors hanging off the stream connection don't trip more socket
events.

this should help with the problem volker described
(This used to be commit fd8eccd5bf)
This commit is contained in:
Andrew Tridgell 2005-10-03 09:36:52 +00:00 committed by Gerald (Jerry) Carter
parent aea73c168b
commit 28bc38de2a

View File

@ -55,6 +55,7 @@ void stream_terminate_connection(struct stream_connection *srv_conn, const char
{
struct event_context *event_ctx = srv_conn->event.ctx;
const struct model_ops *model_ops = srv_conn->model_ops;
talloc_free(srv_conn->event.fde);
talloc_free(srv_conn);
model_ops->terminate(event_ctx, reason);
}