X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/c1659c79ef18a34d6954689ddd03475cbfdbb1c7..0cd2f40764dd156de309f7536f3867968b6c0fdd:/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);