mirror of
https://github.com/transmission/transmission
synced 2024-12-28 02:27:41 +00:00
(trunk libT) fix tracker IPv6 error reported by the earth spirit
This commit is contained in:
parent
a6a29923c7
commit
4b414e8f2d
1 changed files with 1 additions and 2 deletions
|
@ -291,13 +291,12 @@ publishNewPeersCompact6( tr_tracker * t,
|
||||||
{
|
{
|
||||||
memcpy( &addr.addr.addr6, compactWalk, 16 );
|
memcpy( &addr.addr.addr6, compactWalk, 16 );
|
||||||
memcpy( &port, compactWalk + 16, 2 );
|
memcpy( &port, compactWalk + 16, 2 );
|
||||||
|
compactWalk += 16;
|
||||||
tr_suspectAddress( &addr, "compact6" );
|
tr_suspectAddress( &addr, "compact6" );
|
||||||
|
|
||||||
memcpy( walk, &addr, sizeof( addr ) );
|
memcpy( walk, &addr, sizeof( addr ) );
|
||||||
memcpy( walk + sizeof( addr ), &port, 2 );
|
memcpy( walk + sizeof( addr ), &port, 2 );
|
||||||
|
|
||||||
walk += sizeof( tr_address ) + 2;
|
walk += sizeof( tr_address ) + 2;
|
||||||
compactWalk += 6;
|
|
||||||
}
|
}
|
||||||
publishNewPeers( t, allAreSeeds, array, arrayLen );
|
publishNewPeers( t, allAreSeeds, array, arrayLen );
|
||||||
tr_free( array );
|
tr_free( array );
|
||||||
|
|
Loading…
Reference in a new issue