summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2007-03-18 06:00:53 +0000
committerWayne Davison <wayned@samba.org>2007-03-18 06:00:53 +0000
commita0456b9c4635be8832fc5712454a75ec102b1176 (patch)
treec5534b5b116c0d130615c2188d0885a072a7198b /io.c
parent1a515b494b2ecf927118cfc18d8efb8a58868579 (diff)
downloadrsync-a0456b9c4635be8832fc5712454a75ec102b1176.tar.gz
rsync-a0456b9c4635be8832fc5712454a75ec102b1176.tar.bz2
rsync-a0456b9c4635be8832fc5712454a75ec102b1176.zip
Protocol 30 now uses MD5 checksums instead of MD4.
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 6abaab26..eecab20e 100644
--- a/io.c
+++ b/io.c
@@ -1159,7 +1159,7 @@ void read_sum_head(int f, struct sum_struct *sum)
exit_cleanup(RERR_PROTOCOL);
}
sum->s2length = protocol_version < 27 ? csum_length : (int)read_int(f);
- if (sum->s2length < 0 || sum->s2length > MD4_SUM_LENGTH) {
+ if (sum->s2length < 0 || sum->s2length > MAX_DIGEST_LEN) {
rprintf(FERROR, "Invalid checksum length %d [%s]\n",
sum->s2length, who_am_i());
exit_cleanup(RERR_PROTOCOL);