From 126afea524f7c56b25c56553aee31c79bc20e05d Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Thu, 22 Oct 2015 10:41:40 +0800 Subject: [PATCH] delete buffer --- shadowsocks/encrypt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/shadowsocks/encrypt.py b/shadowsocks/encrypt.py index b7981b4..d3b2752 100644 --- a/shadowsocks/encrypt.py +++ b/shadowsocks/encrypt.py @@ -134,6 +134,7 @@ class Encryptor(object): self.decipher = self.get_cipher(self.key, self.method, 0, iv=decipher_iv) buf = self.iv_buf[decipher_iv_len:] + del self.iv_buf return self.decipher.update(buf) else: return b''