summaryrefslogtreecommitdiffstats
path: root/daemon/tar.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/tar.c')
-rw-r--r--daemon/tar.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/daemon/tar.c b/daemon/tar.c
index 03dc5121..c3bdcf7e 100644
--- a/daemon/tar.c
+++ b/daemon/tar.c
@@ -149,7 +149,9 @@ do_tar_out (const char *dir)
return -1;
}
- send_file_end (0); /* Normal end of file. */
+ if (send_file_end (0)) /* Normal end of file. */
+ return -1;
+
return 0;
}
@@ -268,6 +270,8 @@ do_tgz_out (const char *dir)
return -1;
}
- send_file_end (0); /* Normal end of file. */
+ if (send_file_end (0)) /* Normal end of file. */
+ return -1;
+
return 0;
}