mirror of
https://github.com/transmission/transmission
synced 2025-01-01 12:35:22 +00:00
Go back to using memcmp in libtransmission/net.c
This commit is contained in:
parent
3a1730495d
commit
c6ad5bd36c
1 changed files with 1 additions and 1 deletions
|
@ -639,7 +639,7 @@ isMartianAddr (const struct tr_address * a)
|
|||
case TR_AF_INET6: {
|
||||
const unsigned char * address = (const unsigned char*)&a->addr.addr6;
|
||||
return (address[0] == 0xFF) ||
|
||||
(strncmp (address, zeroes, 15) == 0 &&
|
||||
(memcmp (address, zeroes, 15) == 0 &&
|
||||
(address[15] == 0 || address[15] == 1));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue