summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-07-07 19:49:01 -0400
committerirungentoo <irungentoo@gmail.com>2014-07-07 19:49:01 -0400
commitb4f43b4222eb033ee9af940641a00535f6091e95 (patch)
tree768e143680018a8e363dbacb15546709ae2f7208 /toxcore
parent738bc56da7fc9d80fa4cb1d0a442bd74b3284bfe (diff)
Fixed overflow bug.
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/group_chats.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/toxcore/group_chats.c b/toxcore/group_chats.c
index 1f76878b..53ef69d3 100644
--- a/toxcore/group_chats.c
+++ b/toxcore/group_chats.c
@@ -471,16 +471,6 @@ static int handle_sendnodes(Group_Chat *chat, IP_Port source, int peernum, const
471 471
472 int ok = add_closepeer(chat, chat->group[peernum].client_id, source); 472 int ok = add_closepeer(chat, chat->group[peernum].client_id, source);
473 473
474 if (chat->assoc) {
475 ippts_send.ip_port = chat->group[peernum].ping_via;
476 ippts_send.timestamp = chat->group[peernum].last_pinged;
477
478 IP_Port ipp_recv;
479 ipp_recv = source;
480
481 Assoc_add_entry(chat->assoc, contents.nodes[i].client_id, &ippts_send, &ipp_recv, ok == 0 ? 1 : 0);
482 }
483
484 return 0; 474 return 0;
485} 475}
486 476