From 4c842b5dc11682c14f3a7558431db90b2d22985f Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Mon, 27 Jan 2020 16:21:27 +0100 Subject: [PATCH] Fix up check_consecutive_iv() It was using the wrong variable to store the previously used IV. --- deltatar/crypto.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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): -- 1.7.1