summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-08-05 10:05:56 +0200
committerStefan Metzmacher <metze@samba.org>2009-08-05 10:10:14 +0200
commitf22408913846b2510352c60e6476b2a693e1a7ee (patch)
tree55cc8251a210f8d7d16288870b40e44daef80811
parente2ed5029e97671b307af06c9fff1d4f0442553a2 (diff)
downloadsamba-f22408913846b2510352c60e6476b2a693e1a7ee.tar.gz
samba-f22408913846b2510352c60e6476b2a693e1a7ee.tar.bz2
samba-f22408913846b2510352c60e6476b2a693e1a7ee.zip
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
-rw-r--r--source4/ldap_server/ldap_server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/ldap_server/ldap_server.c b/source4/ldap_server/ldap_server.c
index 72431e9669..b119620339 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);
}