Changeset 7913


Ignore:
Timestamp:
Feb 18, 2009, 10:25:13 PM (13 years ago)
Author:
charles
Message:

(trunk libT) more #1829

Location:
trunk/libtransmission
Files:
2 edited

Legend:

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

    r7912 r7913  
    818818        const uint32_t offset = getBlockOffsetInPiece( tor, block );
    819819        const uint32_t length = tr_torBlockCountBytes( tor, block );
     820
     821        assert( block < tor->blockCount );
    820822
    821823        /* find a peer who can ask for this block */
  • trunk/libtransmission/peer-msgs.c

    r7912 r7913  
    719719**/
    720720
    721 static int
     721static tr_bool
    722722reqIsValid( const tr_peermsgs * peer,
    723723            uint32_t            index,
     
    728728}
    729729
    730 static int
     730static tr_bool
    731731requestIsValid( const tr_peermsgs * msgs, const struct peer_request * req )
    732732{
     
    842842    assert( msgs );
    843843    assert( msgs->torrent );
    844     assert( reqIsValid( msgs, index, offset, length ) );
    845844
    846845    /**
Note: See TracChangeset for help on using the changeset viewer.