Ignore:
Timestamp:
Nov 24, 2009, 5:31:20 PM (13 years ago)
Author:
charles
Message:

(trunk libT) don't allow duplicate torrents to be added via magnet links

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-msgs.c

    r9553 r9557  
    18731873            tr_bencDictAddInt( &tmp, "msg_type", METADATA_MSG_TYPE_DATA );
    18741874            tr_bencDictAddInt( &tmp, "piece", piece );
    1875             tr_bencDictAddInt( &tmp, "total_size", dataLen );
     1875            tr_bencDictAddInt( &tmp, "total_size", msgs->torrent->infoDictLength );
    18761876            payload = tr_bencToStr( &tmp, TR_FMT_BENC, &payloadLen );
    18771877            tr_bencFree( &tmp );
Note: See TracChangeset for help on using the changeset viewer.