Changeset 9087


Ignore:
Timestamp:
Sep 10, 2009, 3:07:54 AM (13 years ago)
Author:
charles
Message:

(trunk libT) fix oops

File:
1 edited

Legend:

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

    r9085 r9087  
    245245    const struct peer_atom * b = vb;
    246246
     247    assert( tr_isAddress( &b->addr ) );
     248    assert( ( 0 <= b->from ) && ( b->from < TR_PEER_FROM__MAX ) );
     249
    247250    return comparePeerAtomToAddress( va, &b->addr );
    248251}
     
    11921195                  uint8_t            from )
    11931196{
     1197    assert( tr_isAddress( addr ) );
     1198    assert( ( 0 <= from ) && ( from < TR_PEER_FROM__MAX ) );
     1199
    11941200    if( getExistingAtom( t, addr ) == NULL )
    11951201    {
     
    15281534    const struct peer_atom * b = * (const struct peer_atom**) vb;
    15291535
    1530     assert( ( 0 < a->from ) && ( a->from < TR_PEER_FROM__MAX ) );
    1531     assert( ( 0 < b->from ) && ( b->from < TR_PEER_FROM__MAX ) );
     1536    assert( ( 0 <= a->from ) && ( a->from < TR_PEER_FROM__MAX ) );
     1537    assert( ( 0 <= b->from ) && ( b->from < TR_PEER_FROM__MAX ) );
    15321538
    15331539    if( a->piece_data_time != b->piece_data_time )
Note: See TracChangeset for help on using the changeset viewer.