From: Stefan Metzmacher Date: Thu, 30 Jul 2009 06:44:21 +0000 (+0200) Subject: s4:libcli/ldap: the tls code steals the original socket on its own now X-Git-Tag: tevent-0.9.8~534 X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=commitdiff_plain;h=a3bcbd177537e5da437974e64bbd07d88c087fa2 s4:libcli/ldap: the tls code steals the original socket on its own now metze --- diff --git a/source4/libcli/ldap/ldap_client.c b/source4/libcli/ldap/ldap_client.c index 304a2e1253d..9135b425743 100644 --- a/source4/libcli/ldap/ldap_client.c +++ b/source4/libcli/ldap/ldap_client.c @@ -417,10 +417,7 @@ static void ldap_connect_got_sock(struct composite_context *ctx, return; } - /* the original socket, must become a child of the tls socket */ - tmp_socket = conn->sock; conn->sock = talloc_steal(conn, tls_socket); - talloc_steal(conn->sock, tmp_socket); } conn->packet = packet_init(conn);