diff options
Diffstat (limited to 'pdf/xpdf/XRef.cc')
-rw-r--r-- | pdf/xpdf/XRef.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pdf/xpdf/XRef.cc b/pdf/xpdf/XRef.cc index 0e1bbc9..901caa5 100644 --- a/pdf/xpdf/XRef.cc +++ b/pdf/xpdf/XRef.cc @@ -6,11 +6,12 @@ // //======================================================================== -#ifdef __GNUC__ +#include <aconf.h> + +#ifdef USE_GCC_PRAGMAS #pragma implementation #endif -#include <aconf.h> #include <stdlib.h> #include <stddef.h> #include <string.h> @@ -454,6 +455,7 @@ GBool XRef::checkEncrypted(GString *ownerPassword, GString *userPassword) { ret = gFalse; permFlags = defPermFlags; + ownerPasswordOk = gFalse; trailerDict.dictLookup("Encrypt", &encrypt); if ((encrypted1 = encrypt.isDict())) { ret = gTrue; |