From 28bc38de2ab3a408702cd7d6b69d6549a1fea71a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 3 Oct 2005 09:36:52 +0000 Subject: [PATCH] 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 fd8eccd5bf0c742a7809f3991101f4ac75b5e037) --- source4/smbd/service_stream.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source4/smbd/service_stream.c b/source4/smbd/service_stream.c index 3cecd8076ef..1ed8b4d8af6 100644 --- a/source4/smbd/service_stream.c +++ b/source4/smbd/service_stream.c @@ -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); }