X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/9dd891bb28f6cc558b87905f1adc5e3d4180b6b3..76f79ba748adeacdb966d01fa09d75f0dfb69f3b:/sender.c diff --git a/sender.c b/sender.c index ee34bc9e..d9fc5e6c 100644 --- a/sender.c +++ b/sender.c @@ -159,13 +159,14 @@ void send_files(struct file_list *flist,int f_out,int f_in) initial_stats = stats; s = receive_sums(f_in); - if (write_batch) /* dw */ - write_batch_csum_info(&i,flist->count,s); if (!s) { io_error = 1; rprintf(FERROR,"receive_sums failed\n"); return; } + + if (write_batch) + write_batch_csum_info(&i,flist->count,s); if (!read_batch) { fd = do_open(fname, O_RDONLY, 0);