summaryrefslogtreecommitdiffstats
path: root/daemon/upload.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/upload.c')
-rw-r--r--daemon/upload.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/daemon/upload.c b/daemon/upload.c
index 143fa823..da86bd65 100644
--- a/daemon/upload.c
+++ b/daemon/upload.c
@@ -129,6 +129,8 @@ do_download (const char *filename)
return -1;
}
- send_file_end (0); /* Normal end of file. */
+ if (send_file_end (0)) /* Normal end of file. */
+ return -1;
+
return 0;
}