diff options
-rw-r--r-- | toxcore/DHT.c | 2 | ||||
-rw-r--r-- | toxcore/Messenger.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/DHT.c b/toxcore/DHT.c index f0bc3de4..bdfe120f 100644 --- a/toxcore/DHT.c +++ b/toxcore/DHT.c | |||
@@ -456,7 +456,7 @@ void addto_lists(DHT *dht, IP_Port ip_port, uint8_t *client_id) | |||
456 | uint32_t i; | 456 | uint32_t i; |
457 | 457 | ||
458 | /* convert IPv4-in-IPv6 to IPv4 */ | 458 | /* convert IPv4-in-IPv6 to IPv4 */ |
459 | if ((ip_port.ip.family == AF_INET6) && IN6_IS_ADDR_V4MAPPED(&ip_port.ip.ip6)) { | 459 | if ((ip_port.ip.family == AF_INET6) && IN6_IS_ADDR_V4MAPPED(&ip_port.ip.ip6.in6_addr)) { |
460 | ip_port.ip.family = AF_INET; | 460 | ip_port.ip.family = AF_INET; |
461 | ip_port.ip.ip4.uint32 = ip_port.ip.ip6.uint32[3]; | 461 | ip_port.ip.ip4.uint32 = ip_port.ip.ip6.uint32[3]; |
462 | } | 462 | } |
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index 0efe20ce..f125c264 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c | |||
@@ -708,7 +708,7 @@ static void group_message_function(Group_Chat *chat, int peer_number, uint8_t *m | |||
708 | } | 708 | } |
709 | 709 | ||
710 | if (m->group_message) | 710 | if (m->group_message) |
711 | (*m->group_message)(m, i, peer_number, message, length, m->group_invite_userdata); | 711 | (*m->group_message)(m, i, peer_number, message, length, m->group_message_userdata); |
712 | } | 712 | } |
713 | 713 | ||
714 | /* Creates a new groupchat and puts it in the chats array. | 714 | /* Creates a new groupchat and puts it in the chats array. |