diff options
Diffstat (limited to 'trackerlogic.c')
| -rw-r--r-- | trackerlogic.c | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/trackerlogic.c b/trackerlogic.c index 62c5972..b1d7349 100644 --- a/trackerlogic.c +++ b/trackerlogic.c | |||
| @@ -224,6 +224,7 @@ ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer ) { | |||
| 224 | torrent->peer_list->seed_count[0]--; | 224 | torrent->peer_list->seed_count[0]--; | 
| 225 | if( !(OT_FLAG(peer_dest) & PEER_FLAG_SEEDING ) && (OT_FLAG(peer) & PEER_FLAG_SEEDING ) ) | 225 | if( !(OT_FLAG(peer_dest) & PEER_FLAG_SEEDING ) && (OT_FLAG(peer) & PEER_FLAG_SEEDING ) ) | 
| 226 | torrent->peer_list->seed_count[0]++; | 226 | torrent->peer_list->seed_count[0]++; | 
| 227 | memmove( peer_dest, peer, sizeof( ot_peer ) ); | ||
| 227 | 228 | ||
| 228 | assert( torrent->peer_list->seed_count[0] >= 0 ); | 229 | assert( torrent->peer_list->seed_count[0] >= 0 ); | 
| 229 | assert( torrent->peer_list->seed_count[0] <= torrent->peer_list->peers[0].size ); | 230 | assert( torrent->peer_list->seed_count[0] <= torrent->peer_list->peers[0].size ); | 
