From 4b414e8f2ddfd3a5bb8200b03b1af996a1ad8717 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 16 Jan 2009 04:36:36 +0000 Subject: [PATCH] (trunk libT) fix tracker IPv6 error reported by the earth spirit --- libtransmission/tracker.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libtransmission/tracker.c b/libtransmission/tracker.c index e81af9181..843aa2cbd 100644 --- a/libtransmission/tracker.c +++ b/libtransmission/tracker.c @@ -291,13 +291,12 @@ publishNewPeersCompact6( tr_tracker * t, { memcpy( &addr.addr.addr6, compactWalk, 16 ); memcpy( &port, compactWalk + 16, 2 ); + compactWalk += 16; tr_suspectAddress( &addr, "compact6" ); memcpy( walk, &addr, sizeof( addr ) ); memcpy( walk + sizeof( addr ), &port, 2 ); - walk += sizeof( tr_address ) + 2; - compactWalk += 6; } publishNewPeers( t, allAreSeeds, array, arrayLen ); tr_free( array );