diff --git a/phpseclib/Crypt/Base.php b/phpseclib/Crypt/Base.php index 30dafbf3..8033394c 100644 --- a/phpseclib/Crypt/Base.php +++ b/phpseclib/Crypt/Base.php @@ -1152,7 +1152,7 @@ class Crypt_Base $plaintext = ''; if ($this->continuousBuffer) { $iv = &$this->decryptIV; - $pos = &$this->buffer['pos']; + $pos = &$this->debuffer['pos']; } else { $iv = $this->decryptIV; $pos = 0;