From b32fd63459f11d12de8b9cd94deab4a792f2af74 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 21 Aug 2010 14:25:48 -0700 Subject: [PATCH 1/1] Avoid a crash with --append-verify when discarding the received data. Fixes bug 6293. --- receiver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver.c b/receiver.c index 861895ec..d5a338cc 100644 --- a/receiver.c +++ b/receiver.c @@ -228,7 +228,7 @@ static int receive_data(int f_in, char *fname_r, int fd_r, OFF_T size_r, sum.flength = (OFF_T)sum.count * sum.blength; if (sum.remainder) sum.flength -= sum.blength - sum.remainder; - if (append_mode == 2) { + if (append_mode == 2 && mapbuf) { for (j = CHUNK_SIZE; j < sum.flength; j += CHUNK_SIZE) { if (INFO_GTE(PROGRESS, 1)) show_progress(offset, total_size); -- 2.34.1