diff options
author | erdgeist <> | 2007-01-24 21:26:50 +0000 |
---|---|---|
committer | erdgeist <> | 2007-01-24 21:26:50 +0000 |
commit | c2ed48f73b625f39c6b61c7e0710fd941dc92f9d (patch) | |
tree | 53de06ac68cc7ddc174805052ebfaa3689d0a7d7 /trackerlogic.c | |
parent | d7c00a909b24335ff3662859fd0dcd9001c47be9 (diff) |
Return empty dictionary for unknown scrapes
Diffstat (limited to 'trackerlogic.c')
-rw-r--r-- | trackerlogic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trackerlogic.c b/trackerlogic.c index 4f2ba68..ea9b929 100644 --- a/trackerlogic.c +++ b/trackerlogic.c | |||
@@ -333,7 +333,7 @@ size_t return_scrape_for_torrent( ot_hash *hash, char *reply ) { | |||
333 | ot_vector *torrents_list = &all_torrents[*hash[0]]; | 333 | ot_vector *torrents_list = &all_torrents[*hash[0]]; |
334 | ot_torrent *torrent = binary_search( hash, torrents_list->data, torrents_list->size, sizeof( ot_torrent ), OT_HASH_COMPARE_SIZE, &exactmatch ); | 334 | ot_torrent *torrent = binary_search( hash, torrents_list->data, torrents_list->size, sizeof( ot_torrent ), OT_HASH_COMPARE_SIZE, &exactmatch ); |
335 | 335 | ||
336 | if( !exactmatch ) return 0; | 336 | if( !exactmatch ) return sprintf( r, "d5:filesdee" ); |
337 | clean_peerlist( NOW, torrent->peer_list ); | 337 | clean_peerlist( NOW, torrent->peer_list ); |
338 | 338 | ||
339 | for( i=0; i<OT_POOLS_COUNT; ++i ) { | 339 | for( i=0; i<OT_POOLS_COUNT; ++i ) { |