Changeset 11479


Ignore:
Timestamp:
Dec 5, 2010, 6:56:23 PM (12 years ago)
Author:
charles
Message:

(2.0x libtransmission) backport r11237 for #3539 "Transmission sending corrupt data in metadata exchange"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0x/libtransmission/torrent-magnet.c

    r10843 r11479  
    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.