diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-07-21 17:37:44 +0300 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-07-21 17:37:44 +0300 |
commit | 812483515ad95c84de9c49de28fbd5ee769facfc (patch) | |
tree | cccd65d2b463ff6440ac367701b97bbc6a5e80d0 /src/archive.c | |
parent | 75802cb07dec505e381d01110a883f84a713ec19 (diff) | |
download | apk-tools-812483515ad95c84de9c49de28fbd5ee769facfc.tar.gz apk-tools-812483515ad95c84de9c49de28fbd5ee769facfc.tar.bz2 apk-tools-812483515ad95c84de9c49de28fbd5ee769facfc.tar.xz apk-tools-812483515ad95c84de9c49de28fbd5ee769facfc.zip |
pkg: fix indexing of multi-part apks
Diffstat (limited to 'src/archive.c')
-rw-r--r-- | src/archive.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/archive.c b/src/archive.c index 7c26502..af0055e 100644 --- a/src/archive.c +++ b/src/archive.c @@ -225,10 +225,10 @@ int apk_tar_parse(struct apk_istream *is, apk_archive_entry_parser parser, } /* Check that there was no partial record */ - if (r != 0) - return -1; + if (r > 0) + r = -1; - return 0; + return r; err: EVP_MD_CTX_cleanup(&teis.mdctx); |