Skip to content

Commit

Permalink
Fix handshake bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JFreegman committed Jun 2, 2020
1 parent 5078abe commit 69eb363
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions toxcore/group_chats.c
Expand Up @@ -4309,7 +4309,7 @@ static int handle_gc_handshake_request(Messenger *m, int group_number, const IP_
}

if (gconn->handshaked) {
return -1;
gconn->handshaked = false;
}
}

Expand Down Expand Up @@ -6476,8 +6476,7 @@ int add_peers_from_announces(const GC_Session *gc_session, GC_Chat *chat, GC_Ann
}

if (!ip_port_set && added_tcp_relays == 0) {
LOGGER_WARNING(chat->logger, "Got invalid announcement: %u relays, IPP set: %d",
added_tcp_relays, ip_port_set);
LOGGER_WARNING(chat->logger, "Got invalid announcement: %u relays, IPP set: %d", added_tcp_relays, ip_port_set);
continue;
}

Expand Down

0 comments on commit 69eb363

Please sign in to comment.