diff options
Diffstat (limited to 'src/deliverable.c')
-rw-r--r-- | src/deliverable.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/deliverable.c b/src/deliverable.c index 3b004cd..1640054 100644 --- a/src/deliverable.c +++ b/src/deliverable.c @@ -1180,7 +1180,8 @@ int delivery_get_installer(struct Delivery *ctx, char *installer_url) { sprintf(script_path, "%s/%s", ctx->storage.tmpdir, installer); if (access(script_path, F_OK)) { // Script doesn't exist - if (HTTP_ERROR(download(installer_url, script_path, NULL))) { + int fetch_status = download(installer_url, script_path, NULL); + if (HTTP_ERROR(fetch_status) || fetch_status < 0) { // download failed return -1; } |