Changeset 11237


Ignore:
Timestamp:
Sep 19, 2010, 9:07:57 PM (11 years ago)
Author:
charles
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent-magnet.c

    r10918 r11237  
    117117                char * infoContents = tr_bencToStr( infoDict, TR_FMT_BENC, &infoLen );
    118118                const uint8_t * i = (const uint8_t*) tr_memmem( (char*)fileContents, fileLen, infoContents, infoLen );
    119                 offset = i == NULL ? i - fileContents : 0;
     119                offset = i != NULL ? i - fileContents : 0;
    120120                tr_free( infoContents );
    121121            }
Note: See TracChangeset for help on using the changeset viewer.