summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/Messenger.c')
-rw-r--r--toxcore/Messenger.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c
index fefc3b17..bd44115d 100644
--- a/toxcore/Messenger.c
+++ b/toxcore/Messenger.c
@@ -2185,10 +2185,10 @@ static int handle_packet(void *object, int i, uint8_t *temp, uint16_t len)
2185 if ((n = unpack_nodes(nodes, MAX_SHARED_RELAYS, NULL, data, data_length, 1)) == -1) 2185 if ((n = unpack_nodes(nodes, MAX_SHARED_RELAYS, NULL, data, data_length, 1)) == -1)
2186 break; 2186 break;
2187 2187
2188 int i; 2188 int j;
2189 2189
2190 for (i = 0; i < n; i++) { 2190 for (j = 0; j < n; j++) {
2191 add_tcp_relay(m->net_crypto, nodes[i].ip_port, nodes[i].public_key); 2191 friend_add_tcp_relay(m->fr_c, m->friendlist[i].friendcon_id, nodes[j].ip_port, nodes[j].public_key);
2192 } 2192 }
2193 2193
2194 break; 2194 break;