diff --git a/lib/formdata.c b/lib/formdata.c index 0fbb23aa77..a42ea53903 100644 --- a/lib/formdata.c +++ b/lib/formdata.c @@ -895,11 +895,11 @@ void Curl_formclean(struct FormData *form) int curl_formget(struct curl_httppost *form, void *arg, curl_formget_callback append) { - CURLFORMcode rc; + CURLcode rc; curl_off_t size; struct FormData *data, *ptr; - if ((rc = Curl_getFormData(&data, form, &size))) { + if ((rc = Curl_getFormData(&data, form, &size)) != CURLE_OK) { return (int)rc; }