summaryrefslogtreecommitdiff
path: root/pdf/pdf_crypt.c
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2011-07-29 14:22:29 +0100
committerRobin Watts <Robin.Watts@artifex.com>2011-07-29 14:25:19 +0100
commit684cd3ebbbeaffbf416a09aad6af2cb160cec6bb (patch)
tree3d8e65ce26791f5a63c15661af8adb41f829d21a /pdf/pdf_crypt.c
parent93701ab27b4d50f5d27da43f34d432e1963ce337 (diff)
downloadmupdf-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.c2
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));
}