diff options
author | Timo Teräs <timo.teras@iki.fi> | 2021-07-18 00:11:20 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2021-07-22 15:30:08 +0300 |
commit | 05364528bbb5e1300187da3c3df474b9eaee2138 (patch) | |
tree | 4dd89256c16670d81b3b4b1e9a454ca3028f6ebb /src | |
parent | 7e585512f4409eb4e1635ed4d58e9c9774495dfa (diff) | |
download | apk-tools-05364528bbb5e1300187da3c3df474b9eaee2138.tar.gz apk-tools-05364528bbb5e1300187da3c3df474b9eaee2138.tar.bz2 apk-tools-05364528bbb5e1300187da3c3df474b9eaee2138.tar.xz apk-tools-05364528bbb5e1300187da3c3df474b9eaee2138.zip |
adb, convndx: check istream_close result
Diffstat (limited to 'src')
-rw-r--r-- | src/adb.c | 3 | ||||
-rw-r--r-- | src/app_convndx.c | 2 |
2 files changed, 2 insertions, 3 deletions
@@ -966,8 +966,7 @@ int adb_c_block_data(struct apk_ostream *os, apk_blob_t hdr, uint32_t size, stru if (r < 0) return r; } - apk_istream_close(is); - return 0; + return apk_istream_close(is); } int adb_c_block_copy(struct apk_ostream *os, struct adb_block *b, struct apk_istream *is, struct adb_verify_ctx *vfy) diff --git a/src/app_convndx.c b/src/app_convndx.c index eb98b5f..21015cb 100644 --- a/src/app_convndx.c +++ b/src/app_convndx.c @@ -43,7 +43,7 @@ static int load_apkindex(void *sctx, const struct apk_file_info *fi, if (strcmp(fi->name, "APKINDEX") == 0) { ctx->found = 1; convert_index(ctx, is); - apk_istream_close(is); + return apk_istream_close(is); } return 0; |