1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

mime: do not reuse previously computed multipart size

The contents might have changed: size must be recomputed.

Reported-by: moteus on github
Fixes #1999
This commit is contained in:
Patrick Monnerat 2017-10-20 13:57:12 +01:00
parent aeaa22de8e
commit cea27d3454

View File

@ -1523,7 +1523,7 @@ curl_off_t Curl_mime_size(curl_mimepart *part)
{ {
curl_off_t size; curl_off_t size;
if(part->datasize < 0 && part->kind == MIMEKIND_MULTIPART) if(part->kind == MIMEKIND_MULTIPART)
part->datasize = multipart_size(part->arg); part->datasize = multipart_size(part->arg);
size = part->datasize; size = part->datasize;