Changeset 2497


Ignore:
Timestamp:
Jul 25, 2007, 5:46:00 PM (15 years ago)
Author:
charles
Message:

some assertions to smoke out the error that SoftwareElves? is seeing

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer.c

    r2492 r2497  
    319319    tr_rcClose( peer->upload );
    320320    free( peer->client );
     321
     322    memset( peer, '\0', sizeof(tr_peer_t) );
     323
    321324    free( peer );
    322325}
     
    481484    uint8_t * p;
    482485    uint64_t date;
    483     const int isSeeding = tr_cpGetStatus( tor->completion ) != TR_CP_INCOMPLETE;
     486    int isSeeding;
     487
     488    assert( peer != NULL );
     489    assert( peer->tor != NULL );
     490
     491    isSeeding = tr_cpGetStatus( tor->completion ) != TR_CP_INCOMPLETE;
    484492
    485493    if( ( ret = checkPeer( peer ) ) )
  • trunk/libtransmission/peerext.h

    r2339 r2497  
    3838    benc_val_t            val, * addval, * delval, * extra;
    3939
     40    assert( tor != NULL );
     41    assert( peer != NULL );
     42    assert( retbuf != NULL );
     43    assert( retlen != NULL );
     44
    4045    *retbuf = NULL;
    4146    *retlen = 0;
Note: See TracChangeset for help on using the changeset viewer.