diff options
Diffstat (limited to 'toxcore/ping.c')
-rw-r--r-- | toxcore/ping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/ping.c b/toxcore/ping.c index cc77f2b1..3daeff86 100644 --- a/toxcore/ping.c +++ b/toxcore/ping.c | |||
@@ -250,7 +250,7 @@ static int in_list(const Client_data *list, uint16_t length, const uint8_t *publ | |||
250 | if (id_equal(list[i].public_key, public_key)) { | 250 | if (id_equal(list[i].public_key, public_key)) { |
251 | const IPPTsPng *ipptp; | 251 | const IPPTsPng *ipptp; |
252 | 252 | ||
253 | if (ip_port.ip.family == TOX_AF_INET) { | 253 | if (net_family_is_ipv4(ip_port.ip.family)) { |
254 | ipptp = &list[i].assoc4; | 254 | ipptp = &list[i].assoc4; |
255 | } else { | 255 | } else { |
256 | ipptp = &list[i].assoc6; | 256 | ipptp = &list[i].assoc6; |