Fixed overflow bug.

This commit is contained in:
irungentoo 2014-07-07 19:49:01 -04:00
parent 738bc56da7
commit b4f43b4222
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -471,16 +471,6 @@ static int handle_sendnodes(Group_Chat *chat, IP_Port source, int peernum, const
int ok = add_closepeer(chat, chat->group[peernum].client_id, source); int ok = add_closepeer(chat, chat->group[peernum].client_id, source);
if (chat->assoc) {
ippts_send.ip_port = chat->group[peernum].ping_via;
ippts_send.timestamp = chat->group[peernum].last_pinged;
IP_Port ipp_recv;
ipp_recv = source;
Assoc_add_entry(chat->assoc, contents.nodes[i].client_id, &ippts_send, &ipp_recv, ok == 0 ? 1 : 0);
}
return 0; return 0;
} }