diff options
Diffstat (limited to 'trackerlogic.c')
-rw-r--r-- | trackerlogic.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/trackerlogic.c b/trackerlogic.c index 2f75b15..37cca03 100644 --- a/trackerlogic.c +++ b/trackerlogic.c | |||
@@ -80,6 +80,11 @@ size_t add_peer_to_torrent_and_return_peers( ot_hash hash, ot_peer *peer, PROTO_ | |||
80 | 80 | ||
81 | if( !accesslist_hashisvalid( hash ) ) { | 81 | if( !accesslist_hashisvalid( hash ) ) { |
82 | mutex_bucket_unlock_by_hash( hash, 0 ); | 82 | mutex_bucket_unlock_by_hash( hash, 0 ); |
83 | if( proto == FLAG_TCP ) { | ||
84 | const char invalid_hash[] = "d14:failure reason63:Requested download is not authorized for use with this tracker.e"; | ||
85 | memcpy( reply, invalid_hash, strlen( invalid_hash ) ); | ||
86 | return strlen( invalid_hash ); | ||
87 | } | ||
83 | return 0; | 88 | return 0; |
84 | } | 89 | } |
85 | 90 | ||