md5: fix large size handling

Follow-up to dd7fcd581f

Closes #21180
This commit is contained in:
Daniel Stenberg 2026-03-31 17:36:11 +02:00
parent dd7fcd581f
commit 6eab0a42e3
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -551,7 +551,7 @@ CURLcode Curl_md5it(unsigned char *output,
unsigned int ilen = (unsigned int) CURLMIN(len, UINT_MAX);
my_md5_update(&ctx, input, ilen);
input += ilen;
len -= len;
len -= ilen;
} while(len);
my_md5_final(output, &ctx);
}