X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fupload.c;h=da86bd65575dfe64fc0ffc61221aa773abca03f6;hp=143fa823a82934d6fb5f1c8777ef369480df77fc;hb=d15195bad9e50f4d80e84c39100a217a260fc806;hpb=08c27722647d14a30648dd02e221e1e803d1189e 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; }