mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fix uninitialized
This commit is contained in:
parent
837f72b39e
commit
6b0fe7eb41
|
@ -190,7 +190,7 @@ static int get_peer_index(Group_c *g, uint16_t peer_number)
|
|||
|
||||
static uint16_t calculate_comp_value(const uint8_t *pk1, const uint8_t *pk2)
|
||||
{
|
||||
uint8_t cmp1, cmp2;
|
||||
uint8_t cmp1, cmp2=0;
|
||||
|
||||
for (cmp1 = crypto_box_PUBLICKEYBYTES; cmp1 != 0; --cmp1) {
|
||||
uint8_t index = crypto_box_PUBLICKEYBYTES - cmp1;
|
||||
|
|
|
@ -1817,6 +1817,7 @@ static int tcp_oob_callback(void *object, const uint8_t *public_key, const uint8
|
|||
|
||||
if (crypt_connection_id == -1) {
|
||||
IP_Port source;
|
||||
source.port = 0;
|
||||
source.ip.family = TCP_FAMILY;
|
||||
source.ip.ip6.uint32[0] = location;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user