mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +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:
parent
3ebe5d8f27
commit
0c6657d64d
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue