From: Thomas Jarosch Date: Mon, 27 Jan 2020 15:21:27 +0000 (+0100) Subject: Fix up check_consecutive_iv() X-Git-Tag: v2.2~7^2~15 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=4c842b5dc11682c14f3a7558431db90b2d22985f;p=python-delta-tar Fix up check_consecutive_iv() It was using the wrong variable to store the previously used IV. --- diff --git a/deltatar/crypto.py b/deltatar/crypto.py index 4142808..d840e32 100755 --- a/deltatar/crypto.py +++ b/deltatar/crypto.py @@ -1355,7 +1355,7 @@ class Decrypt (Crypto): raise NonConsecutiveIV ("iv %s counter not successor of " "last object (expected %d, found %d)" % (fixed, iv_fmt (self.last_iv [1]), cnt)) - self.last_iv = (iv, cnt) + self.last_iv = (fixed, cnt) def next (self, hdr):