diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2011-07-29 14:22:29 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2011-07-29 14:25:19 +0100 |
commit | 684cd3ebbbeaffbf416a09aad6af2cb160cec6bb (patch) | |
tree | 3d8e65ce26791f5a63c15661af8adb41f829d21a /pdf/pdf_crypt.c | |
parent | 93701ab27b4d50f5d27da43f34d432e1963ce337 (diff) | |
download | mupdf-684cd3ebbbeaffbf416a09aad6af2cb160cec6bb.tar.xz |
Bug 692382: Fix typo that broke encryption support.
Not quite sure how this one slipped through - must add encrypted documents
to the mupdf test suite.
Diffstat (limited to 'pdf/pdf_crypt.c')
-rw-r--r-- | pdf/pdf_crypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_crypt.c b/pdf/pdf_crypt.c index 5cbe6678..aab30468 100644 --- a/pdf/pdf_crypt.c +++ b/pdf/pdf_crypt.c @@ -285,7 +285,7 @@ pdf_parse_crypt_filter(pdf_crypt_filter *cf, fz_obj *cf_obj, char *name, int def } dict = fz_dict_gets(cf_obj, name); - if (fz_is_dict(dict)) + if (!fz_is_dict(dict)) { return fz_throw("cannot parse crypt filter (%d %d R)", fz_to_num(cf_obj), fz_to_gen(cf_obj)); } |