2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 19:08:59 +00:00

Fix fallback logic for encryption (fixes #229)

This commit is contained in:
Jay Berkenbilt 2018-08-12 22:32:40 -04:00
parent fb1e29476c
commit 5d9d80beba

View File

@ -1124,6 +1124,7 @@ QPDF::decryptString(std::string& str, int objid, int generation)
// To avoid repeated warnings, reset cf_string. Assume
// we'd want to use AES if V == 4.
this->m->cf_string = e_aes;
use_aes = true;
break;
}
}