summaryrefslogtreecommitdiff
path: root/toxcore/TCP_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/TCP_client.c')
-rw-r--r--toxcore/TCP_client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/toxcore/TCP_client.c b/toxcore/TCP_client.c
index 5abb7232..e1b460ab 100644
--- a/toxcore/TCP_client.c
+++ b/toxcore/TCP_client.c
@@ -372,6 +372,7 @@ TCP_Client_Connection *new_TCP_connection(IP_Port ip_port, uint8_t *public_key,
372 temp->status = TCP_CLIENT_CONNECTING; 372 temp->status = TCP_CLIENT_CONNECTING;
373 temp->sock = sock; 373 temp->sock = sock;
374 memcpy(temp->public_key, public_key, crypto_box_PUBLICKEYBYTES); 374 memcpy(temp->public_key, public_key, crypto_box_PUBLICKEYBYTES);
375 temp->ip_port = ip_port;
375 376
376 if (generate_handshake(temp, self_public_key, self_secret_key) == -1) { 377 if (generate_handshake(temp, self_public_key, self_secret_key) == -1) {
377 kill_sock(sock); 378 kill_sock(sock);