From c2ed48f73b625f39c6b61c7e0710fd941dc92f9d Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Wed, 24 Jan 2007 21:26:50 +0000 Subject: [PATCH] Return empty dictionary for unknown scrapes --- trackerlogic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { ot_vector *torrents_list = &all_torrents[*hash[0]]; ot_torrent *torrent = binary_search( hash, torrents_list->data, torrents_list->size, sizeof( ot_torrent ), OT_HASH_COMPARE_SIZE, &exactmatch ); - if( !exactmatch ) return 0; + if( !exactmatch ) return sprintf( r, "d5:filesdee" ); clean_peerlist( NOW, torrent->peer_list ); for( i=0; i