Changeset 7220


Ignore:
Timestamp:
Dec 1, 2008, 4:33:58 PM (12 years ago)
Author:
charles
Message:

(1.4x libT) backport #1542: SIGSEGV in tr_publisherPublish()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.4x/libtransmission/peer-msgs.c

    r7181 r7220  
    14331433            dbgmsg( msgs, "got Have: %u", ui32 );
    14341434            if( tr_bitfieldAdd( msgs->info->have, ui32 ) )
     1435            {
    14351436                fireError( msgs, ERANGE );
     1437                return READ_ERR;
     1438            }
    14361439            updatePeerProgress( msgs );
    14371440            tr_rcTransferred( msgs->torrent->swarmSpeed,
     
    16751678
    16761679    /* log the raw data that was read */
    1677     if( EVBUFFER_LENGTH( in ) != inlen )
     1680    if( ( ret != READ_ERR ) && ( EVBUFFER_LENGTH( in ) != inlen ) )
    16781681        fireClientGotData( msgs, inlen - EVBUFFER_LENGTH( in ), FALSE );
    16791682
     
    17491752        if( err ) {
    17501753            fireError( msgs, err );
     1754            bytesWritten = 0;
     1755            msgs = NULL;
    17511756        } else {
    17521757            tr_peerIo * io = msgs->io;
     
    17701775    **/
    17711776
    1772     if( msgs->clientSentAnythingAt
     1777    if( ( msgs != NULL )
     1778        && ( msgs->clientSentAnythingAt != 0 )
    17731779        && ( ( now - msgs->clientSentAnythingAt ) > KEEPALIVE_INTERVAL_SECS ) )
    17741780    {
Note: See TracChangeset for help on using the changeset viewer.