From 16c19e94244a7677890b8d7bd36eed09fe20fb0f Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Thu, 29 Apr 2021 11:50:42 +0200 Subject: [PATCH] libqpdf/Pl_AES_PDF.cc: remove duplicated if branch Check for this->encrypt seems to be moved to plugged crypto implementations, so it can be removed from Pl_AES_PDF.cc. --- libqpdf/Pl_AES_PDF.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/libqpdf/Pl_AES_PDF.cc b/libqpdf/Pl_AES_PDF.cc index 2865f804..f4ba1923 100644 --- a/libqpdf/Pl_AES_PDF.cc +++ b/libqpdf/Pl_AES_PDF.cc @@ -209,14 +209,7 @@ Pl_AES_PDF::flush(bool strip_padding) } } - if (this->encrypt) - { - this->crypto->rijndael_process(this->inbuf, this->outbuf); - } - else - { - this->crypto->rijndael_process(this->inbuf, this->outbuf); - } + this->crypto->rijndael_process(this->inbuf, this->outbuf); unsigned int bytes = this->buf_size; if (strip_padding) {