Changeset 6464


Ignore:
Timestamp:
Aug 9, 2008, 4:17:59 PM (13 years ago)
Author:
charles
Message:

silence the logspam described in http://forum.transmissionbt.com/viewtopic.php?f=4&t=5588&

File:
1 edited

Legend:

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

    r6453 r6464  
    10791079    size_t n = compactLen / 6;
    10801080    const uint8_t * walk = compact;
     1081    const size_t flen = strlen( added_f );
    10811082    tr_pex * pex = tr_new0( tr_pex, n );
     1083
     1084#if 0
    10821085if( added_f && strlen(added_f)!=n )
    10831086{
     
    10881091        fprintf( stderr, "added.f[%d] is %d\n", i, (int)added_f[i] );
    10891092}
     1093#endif
     1094
    10901095    for( i=0; i<n; ++i ) {
    10911096        memcpy( &pex[i].in_addr, walk, 4 ); walk += 4;
    10921097        memcpy( &pex[i].port, walk, 2 ); walk += 2;
    1093         if( added_f )
     1098        if( added_f && ( n == flen ) )
    10941099            pex[i].flags = added_f[i];
    10951100    }
Note: See TracChangeset for help on using the changeset viewer.