From: Stefan Metzmacher Date: Wed, 5 Aug 2009 08:05:56 +0000 (+0200) Subject: s4:ldap_server: make sure we shutdown the tls socket before stream_terminate_connecti... X-Git-Tag: talloc-2.0.0~464^2~62 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f22408913846b2510352c60e6476b2a693e1a7ee;p=thirdparty%2Fsamba.git s4:ldap_server: make sure we shutdown the tls socket before stream_terminate_connection() removes the fd event This fixes a crash bug where tls_destructor() relies on the fd event still being there. metze --- diff --git a/source4/ldap_server/ldap_server.c b/source4/ldap_server/ldap_server.c index 72431e96690..b119620339b 100644 --- a/source4/ldap_server/ldap_server.c +++ b/source4/ldap_server/ldap_server.c @@ -51,6 +51,7 @@ void ldapsrv_terminate_connection(struct ldapsrv_connection *conn, { packet_recv_disable(conn->packet); TALLOC_FREE(conn->packet); + TALLOC_FREE(conn->sockets.tls); stream_terminate_connection(conn->connection, reason); }