diff options
author | erdgeist <> | 2008-12-30 18:40:09 +0000 |
---|---|---|
committer | erdgeist <> | 2008-12-30 18:40:09 +0000 |
commit | 3ee8991200dcef06520b9f022de784eb1089d40a (patch) | |
tree | a4a0da84dc94d8acf0bf6754cb57ddf988df8d2b | |
parent | 3df5e476d086e7a5e1e6cd66ffc0c98e72c2f0bf (diff) |
Fix badly formed bencoded answer to stopped events
-rw-r--r-- | trackerlogic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trackerlogic.c b/trackerlogic.c index c1106e1..34a12e7 100644 --- a/trackerlogic.c +++ b/trackerlogic.c | |||
@@ -335,7 +335,7 @@ size_t remove_peer_from_torrent( ot_hash *hash, ot_peer *peer, char *reply, PROT | |||
335 | 335 | ||
336 | if( proto == FLAG_TCP ) { | 336 | if( proto == FLAG_TCP ) { |
337 | int erval = OT_CLIENT_REQUEST_INTERVAL_RANDOM; | 337 | int erval = OT_CLIENT_REQUEST_INTERVAL_RANDOM; |
338 | reply_size = sprintf( reply, "d8:completei%zde10:incompletei%zde8:intervali%ie12min intervali%ie5:peers0:e", peer_list->seed_count, peer_list->peer_count - peer_list->seed_count, erval, erval / 2 ); | 338 | reply_size = sprintf( reply, "d8:completei%zde10:incompletei%zde8:intervali%ie12:min intervali%ie5:peers0:e", peer_list->seed_count, peer_list->peer_count - peer_list->seed_count, erval, erval / 2 ); |
339 | } | 339 | } |
340 | 340 | ||
341 | /* Handle UDP reply */ | 341 | /* Handle UDP reply */ |