From fdaffc5f1a24aa97e6b21cfb326711f3ce04d951 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 3 Oct 2013 01:40:34 +0000 Subject: [PATCH] merged web seeding fix from RC_0_16 --- src/web_peer_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web_peer_connection.cpp b/src/web_peer_connection.cpp index 78476bb7a..a36dabd30 100644 --- a/src/web_peer_connection.cpp +++ b/src/web_peer_connection.cpp @@ -737,7 +737,7 @@ namespace libtorrent // 3. the start of a block // in that order, these parts are parsed. - bool range_overlaps_request = re > fs + int(m_piece.size()); + bool range_overlaps_request = re >= fs + int(m_piece.size()); if (!range_overlaps_request) {