Changeset 7414


Ignore:
Timestamp:
Dec 16, 2008, 9:12:14 PM (12 years ago)
Author:
charles
Message:

(trunk libT) add a similar check to the peer->addr in the place where crash is occurring

File:
1 edited

Legend:

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

    r7409 r7414  
    5858   
    5959    /* how frequently to reallocate bandwidth */
    60     BANDWIDTH_PERIOD_MSEC = 250,
     60    BANDWIDTH_PERIOD_MSEC = 200,
    6161
    6262    /* max # of peers to ask fer per torrent per reconnect pulse */
     
    887887    assert( torrentIsLocked( t ) );
    888888
     889    tordbg( t, "got a block; cancelling any duplicate requests from peers %"PRIu32":%"PRIu32"->%"PRIu32, index, offset, length );
    889890    peers = getConnectedPeers( t, &size );
    890891    for( i=0; i<size; ++i )
     
    15151516            {
    15161517                const struct peer_atom * atom = getExistingAtom( t, &peer->addr );
    1517                 memcpy( &walk->addr, &peer->addr, sizeof( walk->addr ) );
     1518                assert( tr_isAddress( &peer->addr ) );
     1519                walk->addr = peer->addr;
    15181520                walk->port = peer->port;
    15191521                walk->flags = 0;
Note: See TracChangeset for help on using the changeset viewer.