-@@ -734,6 +735,15 @@ static struct file_struct *recv_file_ent
- bp = tmp_sum;
- }
- read_buf(f, bp, checksum_len);
-+ if (pre_checksum && sum_len) {
+@@ -955,6 +956,15 @@ static struct file_struct *recv_file_ent
+ memcpy(bp, F_SUM(first), checksum_len);
+ } else
+ read_buf(f, bp, checksum_len);
++ if (pre_checksum && bp != tmp_sum) {