1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s4:libcli/ldap: the tls code steals the original socket on its own now

metze
This commit is contained in:
Stefan Metzmacher 2009-07-30 08:44:21 +02:00
parent 471e67a733
commit a3bcbd1775

View 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);