summaryrefslogtreecommitdiff
path: root/src/adb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/adb.c')
-rw-r--r--src/adb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/adb.c b/src/adb.c
index 640f01b..a4fe612 100644
--- a/src/adb.c
+++ b/src/adb.c
@@ -220,8 +220,7 @@ bad_msg:
err:
if (r >= 0) r = -APKE_ADB_BLOCK;
done:
- apk_istream_close(is);
- return r;
+ return apk_istream_close_error(is, r);
}
static int __adb_dummy_cb(struct adb *db, struct adb_block *b, struct apk_istream *is)