fix a bug

This commit is contained in:
BreakWa11 2015-11-17 17:49:04 +08:00
parent 84275b6815
commit 3930cfc726

View file

@ -295,7 +295,7 @@ class verify_sha1(verify_base):
ret = b''
if not self.has_sent_header:
datalen = self.get_head_size(buf, 30)
ret += self.pack_auth_data(buf[datalen:])
ret += self.pack_auth_data(buf[:datalen])
buf = buf[datalen:]
self.has_sent_header = True
while len(buf) > self.unit_len: