X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/a0456b9c4635be8832fc5712454a75ec102b1176..0156c7842d413de7a6a6f3aae273c73f5d269662:/checksum.c diff --git a/checksum.c b/checksum.c index fe8a64c0..10cb3667 100644 --- a/checksum.c +++ b/checksum.c @@ -56,11 +56,11 @@ void get_checksum2(char *buf, int32 len, char *sum) if (protocol_version >= 30) { uchar seedbuf[4]; md5_begin(&m); + md5_update(&m, (uchar *)buf, len); if (checksum_seed) { SIVAL(seedbuf, 0, checksum_seed); md5_update(&m, seedbuf, 4); } - md5_update(&m, (uchar *)buf, len); md5_result(&m, (uchar *)sum); } else { int32 i;