s4:libcli/ldap: the tls code steals the original socket on its own now
authorStefan Metzmacher <metze@samba.org>
Thu, 30 Jul 2009 06:44:21 +0000 (08:44 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 31 Jul 2009 12:42:05 +0000 (14:42 +0200)
metze

source4/libcli/ldap/ldap_client.c

index 304a2e1253d30f66945d5e3f6dec407e845122fa..9135b425743f3562eeedf14390481d221e7f9be2 100644 (file)
@@ -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);