X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fupload.c;h=da86bd65575dfe64fc0ffc61221aa773abca03f6;hp=143fa823a82934d6fb5f1c8777ef369480df77fc;hb=d1c35f871022e40f9abd93048c1115c6565f94cb;hpb=0c92c583d5291e1a3a966b36f107bf48e4bfad93 diff --git a/daemon/upload.c b/daemon/upload.c index 143fa82..da86bd6 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; }