summaryrefslogtreecommitdiff
path: root/src/io_url.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/io_url.c')
-rw-r--r--src/io_url.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/io_url.c b/src/io_url.c
index d61dd52..07147c2 100644
--- a/src/io_url.c
+++ b/src/io_url.c
@@ -85,12 +85,14 @@ static ssize_t fetch_read(struct apk_istream *is, void *ptr, size_t size)
return r;
}
-static void fetch_close(struct apk_istream *is)
+static int fetch_close(struct apk_istream *is)
{
+ int r = is->err;
struct apk_fetch_istream *fis = container_of(is, struct apk_fetch_istream, is);
fetchIO_close(fis->fetchIO);
free(fis);
+ return r < 0 ? r : 0;
}
static const struct apk_istream_ops fetch_istream_ops = {