summaryrefslogtreecommitdiff
path: root/src/archive.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/archive.c')
-rw-r--r--src/archive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/archive.c b/src/archive.c
index af0055e..26419d4 100644
--- a/src/archive.c
+++ b/src/archive.c
@@ -93,7 +93,7 @@ static size_t tar_entry_read(void *stream, void *ptr, size_t size)
return -1;
teis->bytes_left -= size;
- if (teis->csum != NULL)
+ if (teis->csum == NULL)
return size;
EVP_DigestUpdate(&teis->mdctx, ptr, size);