diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-07-30 08:43:14 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-07-31 14:42:04 +0200 |
commit | 471e67a7334050576b96184dbe0534982f8706fc (patch) | |
tree | 1ce5d2fbb66665434a953377b0375b46a42e963b /source4/ldap_server/ldap_server.c | |
parent | 6f40637ca8b6c2a54551b711dfd34f24b3295a53 (diff) | |
download | samba-471e67a7334050576b96184dbe0534982f8706fc.tar.gz samba-471e67a7334050576b96184dbe0534982f8706fc.tar.xz samba-471e67a7334050576b96184dbe0534982f8706fc.zip |
s4:ldap_server: the tls code steals the original socket on its own now
metze
Diffstat (limited to 'source4/ldap_server/ldap_server.c')
-rw-r--r-- | source4/ldap_server/ldap_server.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/ldap_server/ldap_server.c b/source4/ldap_server/ldap_server.c index 2f32bb6019..72431e9669 100644 --- a/source4/ldap_server/ldap_server.c +++ b/source4/ldap_server/ldap_server.c @@ -49,6 +49,8 @@ void ldapsrv_terminate_connection(struct ldapsrv_connection *conn, const char *reason) { + packet_recv_disable(conn->packet); + TALLOC_FREE(conn->packet); stream_terminate_connection(conn->connection, reason); } @@ -365,7 +367,6 @@ static void ldapsrv_accept(struct stream_connection *c, ldapsrv_terminate_connection(conn, "ldapsrv_accept: tls_init_server() failed"); return; } - talloc_unlink(c, c->socket); talloc_steal(c, tls_socket); c->socket = tls_socket; conn->sockets.tls = tls_socket; |