summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/pdf/pdf-pkcs7.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-pkcs7.c b/source/pdf/pdf-pkcs7.c
index 2db1b4f2..6ec8aaf2 100644
--- a/source/pdf/pdf-pkcs7.c
+++ b/source/pdf/pdf-pkcs7.c
@@ -201,7 +201,7 @@ static int bsegs_read(BIO *b, char *buf, int size)
}
nb = BIO_read(BIO_next(b), buf, nb);
- if (nb < 0)
+ if (nb <= 0)
return read;
ctx->seg_pos += nb;