]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
really check g_check_blacklist flag
authorerdgeist <>
Fri, 5 Jan 2007 16:25:02 +0000 (16:25 +0000)
committererdgeist <>
Fri, 5 Jan 2007 16:25:02 +0000 (16:25 +0000)
trackerlogic.c

index 620e05649d882e227fdbf502b8b00bdc7e4d39d1..32f008003e686aca488cd6629a43287b1b5c1030 100644 (file)
@@ -166,7 +166,7 @@ ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer ) {
 #endif
 
 #ifdef WANT_BLACKLIST
-  if( stat( fn - 1, &dummy_sb ) )
+  if( g_check_blacklist && stat( fn - 1, &dummy_sb ) )
     return OT_TORRENT_ON_BLACKLIST;
 #endif