Index: rsync-3.1.3/checksum.c
===================================================================
--- rsync-3.1.3.orig/checksum.c
+++ rsync-3.1.3/checksum.c
@@ -35,6 +35,7 @@ extern char *checksum_choice;
 
 int xfersum_type = 0; /* used for the file transfer checksums */
 int checksum_type = 0; /* used for the pre-transfer (--checksum) checksums */
+int xfer_sum_len;
 
 /* Returns 1 if --whole-file must be enabled. */
 int parse_checksum_choice(void)
@@ -45,6 +46,7 @@ int parse_checksum_choice(void)
 		checksum_type = parse_csum_name(cp+1, -1);
 	} else
 		xfersum_type = checksum_type = parse_csum_name(checksum_choice, -1);
+	xfer_sum_len = csum_len_for_type(xfersum_type, 0);
 	return xfersum_type == CSUM_NONE;
 }
 
