Ignore:
Timestamp:
Jan 16, 2011, 3:47:09 PM (11 years ago)
Author:
jch
Message:

Consolidate both versions of tr_isPex into a single function.

There used to be two versions of tr_isPex; one correct in peer-mgr.c,
and one buggy in resume.c. The buggy version caused us to reject all
peers with non-trivial flags when resuming.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/resume.c

    r11599 r11690  
    104104}
    105105
    106 static tr_bool
    107 tr_isPex( const tr_pex * pex )
    108 {
    109     return tr_isAddress( &pex->addr )
    110         && ( pex->flags & 3 ) == pex->flags;
    111 }
    112 
    113106static int
    114107addPeers( tr_torrent * tor, const uint8_t * buf, int buflen )
Note: See TracChangeset for help on using the changeset viewer.