1
0
Fork 0
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:
Charles Kerr 2009-01-16 04:36:36 +00:00
parent a6a29923c7
commit 4b414e8f2d

View file

@ -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 );