From c44b208078bfb5d51b823fb6b67d1aca07d8d994 Mon Sep 17 00:00:00 2001 From: Valient Gough Date: Sat, 22 Jun 2013 20:08:14 +0000 Subject: [PATCH] fix botan post-decryption test git-svn-id: http://encfs.googlecode.com/svn/trunk@109 db9cf616-1c43-0410-9cb8-a902689de0d6 --- cipher/botan.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cipher/botan.cpp b/cipher/botan.cpp index ffea23d..9a04b4b 100644 --- a/cipher/botan.cpp +++ b/cipher/botan.cpp @@ -174,8 +174,8 @@ class BotanBlockCipher : public BlockCipher { auto written = decryptor->read(out, size, Pipe::LAST_MESSAGE); LOG_IF(ERROR, (int)written != size) << "expected output size " << size << ", got " << written; - LOG_IF(ERROR, encryptor->remaining() > 0) << "unread bytes in pipe: " - << encryptor->remaining(); + LOG_IF(ERROR, decryptor->remaining() > 0) << "unread bytes in pipe: " + << decryptor->remaining(); return true; } };