summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/ldap/ldap_client.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source4/libcli/ldap/ldap_client.c b/source4/libcli/ldap/ldap_client.c
index 304a2e1253..9135b42574 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);