[Pkg-privacy-commits] [obfsproxy] 277/353: Fix bug in unused socks5.py function.

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:02:11 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository obfsproxy.

commit 556bd2699cb9d0490e6c3b1ea78326aa767ed7ed
Author: George Kadianakis <desnacked at riseup.net>
Date:   Wed Mar 26 14:17:52 2014 +0000

    Fix bug in unused socks5.py function.
    
    Found by Yawning Angel.
---
 obfsproxy/network/socks5.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/obfsproxy/network/socks5.py b/obfsproxy/network/socks5.py
index a02759a..3959ad1 100644
--- a/obfsproxy/network/socks5.py
+++ b/obfsproxy/network/socks5.py
@@ -534,7 +534,7 @@ class _ByteBuffer(bytearray):
             ret = struct.unpack("!I", self[0:4])[0]
         else:
             ret = struct.unpack("I", self[0:4])[0]
-        del self[0:2]
+        del self[0:4]
         return ret
 
     def add(self, val):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/obfsproxy.git



More information about the Pkg-privacy-commits mailing list