long param_long = 0;
void *param_obj = NULL;
struct SessionHandle *data = curl;
+ CURLcode ret=CURLE_FAILED_INIT;
va_start(arg, tag);
if(tag < CURLOPTTYPE_OBJECTPOINT) {
/* This is a LONG type */
param_long = va_arg(arg, long);
- Curl_setopt(data, tag, param_long);
+ ret = Curl_setopt(data, tag, param_long);
}
else if(tag < CURLOPTTYPE_FUNCTIONPOINT) {
/* This is a object pointer type */
param_obj = va_arg(arg, void *);
- Curl_setopt(data, tag, param_obj);
+ ret = Curl_setopt(data, tag, param_obj);
}
else {
param_func = va_arg(arg, func_T );
- Curl_setopt(data, tag, param_func);
+ ret = Curl_setopt(data, tag, param_func);
}
va_end(arg);
- return CURLE_OK;
+ return ret;
}
CURLcode curl_easy_perform(CURL *curl)