Changeset 7213


Ignore:
Timestamp:
Nov 30, 2008, 9:36:49 PM (12 years ago)
Author:
charles
Message:

(libT) #1542: SIGSEGV in tr_publisherPublish

File:
1 edited

Legend:

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

    r7195 r7213  
    12761276            dbgmsg( msgs, "got Have: %u", ui32 );
    12771277            if( tr_bitfieldAdd( msgs->info->have, ui32 ) )
     1278            {
    12781279                fireError( msgs, ERANGE );
     1280                return READ_ERR;
     1281            }
    12791282            updatePeerProgress( msgs );
    12801283            tr_rcTransferred( msgs->torrent->swarmSpeed,
     
    15061509
    15071510    /* log the raw data that was read */
    1508     if( EVBUFFER_LENGTH( in ) != inlen )
     1511    if( ( ret != READ_ERR ) && ( EVBUFFER_LENGTH( in ) != inlen ) )
    15091512        fireClientGotData( msgs, inlen - EVBUFFER_LENGTH( in ), FALSE );
    15101513
     
    15791582        if( err ) {
    15801583            fireError( msgs, err );
     1584            bytesWritten = 0;
     1585            msgs = NULL;
    15811586        } else {
    15821587            tr_peerIo * io = msgs->io;
     
    16001605    **/
    16011606
    1602     if( msgs->clientSentAnythingAt
     1607    if( ( msgs != NULL )
     1608        && ( msgs->clientSentAnythingAt != 0 )
    16031609        && ( ( now - msgs->clientSentAnythingAt ) > KEEPALIVE_INTERVAL_SECS ) )
    16041610    {
Note: See TracChangeset for help on using the changeset viewer.