~ubuntu-branches/ubuntu/quantal/bittornado/quantal

« back to all changes in this revision

Viewing changes to debian/patches/17_fix_NatCheck_bufferlen_error.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Cameron Dale
  • Date: 2008-07-19 16:08:44 UTC
  • mfrom: (0.1.14 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080719160844-nnmp02ar9pri55v1
Tags: 0.3.18-7
* Refresh all the quilt patches (Closes: #485320)
* Update standards version to 3.8.0
  - Add a README.source file pointing to the quilt documentation
* medium urgency to get it into lenny

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 17_fix_NatCheck_bufferlen_error.dpatch by  <camrdale@gmail.com>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: Fix a syntax error, see http://forums.degreez.net/viewtopic.php?p=28164
 
6
 
 
7
@DPATCH@
 
8
--- bittornado.orig/BitTornado/BT1/NatCheck.py
 
9
+++ bittornado/BitTornado/BT1/NatCheck.py
 
10
@@ -206,9 +206,6 @@
 
11
             self.next_len, self.next_func = x
 
12
             if self.next_len < 0:  # already checked buffer
 
13
                 return             # wait for additional data
 
14
-            if self.bufferlen is not None:
 
15
-                self._read2('')
 
16
-                return
 
17
 
 
18
     def connection_lost(self, connection):
 
19
         if not self.closed: