summaryrefslogtreecommitdiff
path: root/net/libtorrent/patches/patch-ab
blob: a5158a1f2c075675fec87a65a1366ea3bc8efc72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ab,v 1.4 2006/03/03 15:30:53 tron Exp $

--- src/protocol/peer_connection_seed.cc.orig	2006-02-09 16:05:05.000000000 +0000
+++ src/protocol/peer_connection_seed.cc	2006-03-03 15:11:38.000000000 +0000
@@ -168,7 +168,7 @@
     }
 
   case ProtocolBase::REQUEST:
-    if (buf->remaining() < 13)
+    if (buf->remaining() < 12)
       break;
 
     if (!m_up->choked()) {
@@ -185,7 +185,7 @@
     throw network_error("Received a piece but the connection is strictly for seeding.");
 
   case ProtocolBase::CANCEL:
-    if (buf->remaining() < 13)
+    if (buf->remaining() < 12)
       break;
 
     read_cancel_piece(m_down->read_request());