diff --git a/lib/formdata.c b/lib/formdata.c index ebf4d4e88..60971ffa4 100644 --- a/lib/formdata.c +++ b/lib/formdata.c @@ -944,7 +944,7 @@ CURLcode Curl_getFormData(struct FormData **finalform, if (result) break; - size += AddFormData(&form, "\"", 0, &size); + result = AddFormData(&form, "\"", 0, &size); if (result) break;