1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 01:27:28 +00:00

(trunk libT) #3539 "Transmission sending corrupt data in metadata exchange" -- fixed. Thanks to The_8472 of Vuze fame for reporting this. :)

This commit is contained in:
Charles Kerr 2010-09-19 21:07:57 +00:00
parent 3ebe5d8f27
commit 0c6657d64d

View file

@ -116,7 +116,7 @@ findInfoDictOffset( const tr_torrent * tor )
int infoLen;
char * infoContents = tr_bencToStr( infoDict, TR_FMT_BENC, &infoLen );
const uint8_t * i = (const uint8_t*) tr_memmem( (char*)fileContents, fileLen, infoContents, infoLen );
offset = i == NULL ? i - fileContents : 0;
offset = i != NULL ? i - fileContents : 0;
tr_free( infoContents );
}