Lines Matching refs:result
360 CURLcode result; in ftp_cw_lc_write() local
366 result = Curl_cwriter_write(data, writer->next, chunk_type, &nl, 1); in ftp_cw_lc_write()
367 if(result) in ftp_cw_lc_write()
368 return result; in ftp_cw_lc_write()
382 result = Curl_cwriter_write(data, writer->next, chunk_type, in ftp_cw_lc_write()
384 if(result) in ftp_cw_lc_write()
385 return result; in ftp_cw_lc_write()
508 CURLcode result = CURLE_OK; in InitiateTransfer() local
513 result = Curl_conn_connect(data, SECONDARYSOCKET, TRUE, &connected); in InitiateTransfer()
514 if(result || !connected) in InitiateTransfer()
515 return result; in InitiateTransfer()
562 CURLcode result = Curl_pp_readresp(data, sockindex, pp, &code, size); in ftp_readresp() local
606 return result; in ftp_readresp()
630 CURLcode result = CURLE_OK; in Curl_GetFTPResponse() local
647 while(!*ftpcode && !result) { in Curl_GetFTPResponse()
700 result = Curl_pp_flushsend(data, pp); in Curl_GetFTPResponse()
701 if(result) in Curl_GetFTPResponse()
705 result = ftp_readresp(data, FIRSTSOCKET, pp, ftpcode, &nread); in Curl_GetFTPResponse()
706 if(result) in Curl_GetFTPResponse()
724 result, *nreadp, *ftpcode); in Curl_GetFTPResponse()
726 return result; in Curl_GetFTPResponse()
732 CURLcode result = Curl_pp_sendf(data, in ftp_state_user() local
735 if(!result) { in ftp_state_user()
740 return result; in ftp_state_user()
746 CURLcode result = Curl_pp_sendf(data, &conn->proto.ftpc.pp, "%s", "PWD"); in ftp_state_pwd() local
747 if(!result) in ftp_state_pwd()
750 return result; in ftp_state_pwd()
797 CURLcode result = CURLE_OK; in ftp_state_cwd() local
802 result = ftp_state_mdtm(data); in ftp_state_cwd()
818 result = Curl_pp_sendf(data, &ftpc->pp, "CWD %s", ftpc->entrypath); in ftp_state_cwd()
819 if(!result) in ftp_state_cwd()
827 result = Curl_pp_sendf(data, &ftpc->pp, "CWD %s", in ftp_state_cwd()
829 if(!result) in ftp_state_cwd()
834 result = ftp_state_mdtm(data); in ftp_state_cwd()
838 return result; in ftp_state_cwd()
850 CURLcode result = CURLE_FTP_PORT_FAILED; in ftp_state_use_port() local
1156 result = Curl_pp_sendf(data, &ftpc->pp, "%s |%d|%s|%hu|", mode[fcmd], in ftp_state_use_port()
1159 if(result) { in ftp_state_use_port()
1161 curl_easy_strerror(result)); in ftp_state_use_port()
1184 result = Curl_pp_sendf(data, &ftpc->pp, "%s %s", mode[fcmd], target); in ftp_state_use_port()
1185 if(result) { in ftp_state_use_port()
1187 curl_easy_strerror(result)); in ftp_state_use_port()
1199 result = Curl_conn_tcp_listen_set(data, conn, SECONDARYSOCKET, &portsock); in ftp_state_use_port()
1200 if(!result) in ftp_state_use_port()
1207 if(result) { in ftp_state_use_port()
1214 result = Curl_ssl_cfilter_add(data, conn, SECONDARYSOCKET); in ftp_state_use_port()
1224 return result; in ftp_state_use_port()
1231 CURLcode result = CURLE_OK; in ftp_state_use_pasv() local
1258 result = Curl_pp_sendf(data, &ftpc->pp, "%s", mode[modeoff]); in ftp_state_use_pasv()
1259 if(!result) { in ftp_state_use_pasv()
1264 return result; in ftp_state_use_pasv()
1276 CURLcode result = CURLE_OK; in ftp_state_prepare_transfer() local
1285 result = ftp_state_quote(data, TRUE, FTP_RETR_PREQUOTE); in ftp_state_prepare_transfer()
1289 result = ftp_state_use_port(data, EPRT); in ftp_state_prepare_transfer()
1298 result = Curl_pp_sendf(data, &ftpc->pp, "PRET %s", in ftp_state_prepare_transfer()
1303 result = Curl_pp_sendf(data, &ftpc->pp, "PRET STOR %s", in ftp_state_prepare_transfer()
1306 result = Curl_pp_sendf(data, &ftpc->pp, "PRET RETR %s", in ftp_state_prepare_transfer()
1308 if(!result) in ftp_state_prepare_transfer()
1312 result = ftp_state_use_pasv(data, conn); in ftp_state_prepare_transfer()
1314 return result; in ftp_state_prepare_transfer()
1320 CURLcode result = CURLE_OK; in ftp_state_rest() local
1329 result = Curl_pp_sendf(data, &ftpc->pp, "REST %d", 0); in ftp_state_rest()
1330 if(!result) in ftp_state_rest()
1334 result = ftp_state_prepare_transfer(data); in ftp_state_rest()
1336 return result; in ftp_state_rest()
1342 CURLcode result = CURLE_OK; in ftp_state_size() local
1350 result = Curl_pp_sendf(data, &ftpc->pp, "SIZE %s", ftpc->file); in ftp_state_size()
1351 if(!result) in ftp_state_size()
1355 result = ftp_state_rest(data, conn); in ftp_state_size()
1357 return result; in ftp_state_size()
1362 CURLcode result = CURLE_OK; in ftp_state_list() local
1386 result = Curl_urldecode(ftp->path, 0, &rawPath, NULL, REJECT_CTRL); in ftp_state_list()
1387 if(result) in ftp_state_list()
1388 return result; in ftp_state_list()
1416 result = Curl_pp_sendf(data, &conn->proto.ftpc.pp, "%s", cmd); in ftp_state_list()
1419 if(!result) in ftp_state_list()
1422 return result; in ftp_state_list()
1439 CURLcode result = CURLE_OK; in ftp_state_type() local
1458 result = ftp_nb_type(data, conn, data->state.prefer_ascii, FTP_TYPE); in ftp_state_type()
1459 if(result) in ftp_state_type()
1460 return result; in ftp_state_type()
1463 result = ftp_state_size(data, conn); in ftp_state_type()
1465 return result; in ftp_state_type()
1472 CURLcode result = CURLE_OK; in ftp_state_mdtm() local
1481 result = Curl_pp_sendf(data, &ftpc->pp, "MDTM %s", ftpc->file); in ftp_state_mdtm()
1483 if(!result) in ftp_state_mdtm()
1487 result = ftp_state_type(data); in ftp_state_mdtm()
1489 return result; in ftp_state_mdtm()
1497 CURLcode result = CURLE_OK; in ftp_state_ul_setup() local
1521 result = Curl_pp_sendf(data, &ftpc->pp, "SIZE %s", ftpc->file); in ftp_state_ul_setup()
1522 if(!result) in ftp_state_ul_setup()
1524 return result; in ftp_state_ul_setup()
1586 result = Curl_pp_sendf(data, &ftpc->pp, append ? "APPE %s" : "STOR %s", in ftp_state_ul_setup()
1588 if(!result) in ftp_state_ul_setup()
1591 return result; in ftp_state_ul_setup()
1598 CURLcode result = CURLE_OK; in ftp_state_quote() local
1647 result = Curl_pp_sendf(data, &ftpc->pp, "%s", cmd); in ftp_state_quote()
1648 if(result) in ftp_state_quote()
1649 return result; in ftp_state_quote()
1660 result = ftp_state_cwd(data, conn); in ftp_state_quote()
1668 result = ftp_state_retr(data, ftpc->known_filesize); in ftp_state_quote()
1684 result = Curl_pp_sendf(data, &ftpc->pp, "RETR %s", ftpc->file); in ftp_state_quote()
1685 if(!result) in ftp_state_quote()
1689 result = Curl_pp_sendf(data, &ftpc->pp, "SIZE %s", ftpc->file); in ftp_state_quote()
1690 if(!result) in ftp_state_quote()
1697 result = ftp_state_ul_setup(data, FALSE); in ftp_state_quote()
1704 return result; in ftp_state_quote()
1712 CURLcode result = CURLE_OK; in ftp_epsv_disable() local
1731 result = Curl_pp_sendf(data, &conn->proto.ftpc.pp, "%s", "PASV"); in ftp_epsv_disable()
1732 if(!result) { in ftp_epsv_disable()
1737 return result; in ftp_epsv_disable()
1782 CURLcode result; in ftp_state_pasv_resp() local
1930 result = Curl_conn_setup(data, conn, SECONDARYSOCKET, addr, in ftp_state_pasv_resp()
1934 if(result) { in ftp_state_pasv_resp()
1939 return result; in ftp_state_pasv_resp()
1964 return result; in ftp_state_pasv_resp()
1973 CURLcode result = CURLE_OK; in ftp_state_port_resp() local
1988 result = CURLE_FTP_PORT_FAILED; in ftp_state_port_resp()
1992 result = ftp_state_use_port(data, fcmd); in ftp_state_port_resp()
1997 result = ftp_dophase_done(data, FALSE); in ftp_state_port_resp()
2000 return result; in ftp_state_port_resp()
2044 CURLcode result; in client_write_header() local
2047 result = Curl_client_write(data, CLIENTWRITE_HEADER, buf, blen); in client_write_header()
2049 return result; in client_write_header()
2055 CURLcode result = CURLE_OK; in ftp_state_mdtm_resp() local
2092 result = Curl_gmtime(filetime, &buffer); in ftp_state_mdtm_resp()
2093 if(result) in ftp_state_mdtm_resp()
2094 return result; in ftp_state_mdtm_resp()
2107 result = client_write_header(data, headerbuf, headerbuflen); in ftp_state_mdtm_resp()
2108 if(result) in ftp_state_mdtm_resp()
2109 return result; in ftp_state_mdtm_resp()
2154 if(!result) in ftp_state_mdtm_resp()
2155 result = ftp_state_type(data); in ftp_state_mdtm_resp()
2157 return result; in ftp_state_mdtm_resp()
2164 CURLcode result = CURLE_OK; in ftp_state_type_resp() local
2179 result = ftp_state_size(data, conn); in ftp_state_type_resp()
2181 result = ftp_state_list(data); in ftp_state_type_resp()
2183 result = ftp_state_retr_prequote(data); in ftp_state_type_resp()
2185 result = ftp_state_stor_prequote(data); in ftp_state_type_resp()
2187 return result; in ftp_state_type_resp()
2193 CURLcode result = CURLE_OK; in ftp_state_retr() local
2259 result = Curl_pp_sendf(data, &ftpc->pp, "REST %" FMT_OFF_T, in ftp_state_retr()
2261 if(!result) in ftp_state_retr()
2266 result = Curl_pp_sendf(data, &ftpc->pp, "RETR %s", ftpc->file); in ftp_state_retr()
2267 if(!result) in ftp_state_retr()
2271 return result; in ftp_state_retr()
2278 CURLcode result = CURLE_OK; in ftp_state_size_resp() local
2318 result = client_write_header(data, clbuf, clbuflen); in ftp_state_size_resp()
2319 if(result) in ftp_state_size_resp()
2320 return result; in ftp_state_size_resp()
2324 result = ftp_state_rest(data, data->conn); in ftp_state_size_resp()
2328 result = ftp_state_retr(data, filesize); in ftp_state_size_resp()
2332 result = ftp_state_ul_setup(data, TRUE); in ftp_state_size_resp()
2335 return result; in ftp_state_size_resp()
2343 CURLcode result = CURLE_OK; in ftp_state_rest_resp() local
2352 result = client_write_header(data, buffer, strlen(buffer)); in ftp_state_rest_resp()
2353 if(result) in ftp_state_rest_resp()
2354 return result; in ftp_state_rest_resp()
2357 result = ftp_state_prepare_transfer(data); in ftp_state_rest_resp()
2363 result = CURLE_FTP_COULDNT_USE_REST; in ftp_state_rest_resp()
2366 result = Curl_pp_sendf(data, &ftpc->pp, "RETR %s", ftpc->file); in ftp_state_rest_resp()
2367 if(!result) in ftp_state_rest_resp()
2373 return result; in ftp_state_rest_resp()
2379 CURLcode result = CURLE_OK; in ftp_state_stor_resp() local
2398 result = Curl_conn_connect(data, SECONDARYSOCKET, FALSE, &connected); in ftp_state_stor_resp()
2399 if(result) in ftp_state_stor_resp()
2400 return result; in ftp_state_stor_resp()
2417 CURLcode result = CURLE_OK; in ftp_state_get_resp() local
2510 result = Curl_conn_connect(data, SECONDARYSOCKET, FALSE, &connected); in ftp_state_get_resp()
2511 if(result) in ftp_state_get_resp()
2512 return result; in ftp_state_get_resp()
2538 return result; in ftp_state_get_resp()
2544 CURLcode result = CURLE_OK; in ftp_state_loggedin() local
2562 result = Curl_pp_sendf(data, &conn->proto.ftpc.pp, "PBSZ %d", 0); in ftp_state_loggedin()
2563 if(!result) in ftp_state_loggedin()
2567 result = ftp_state_pwd(data, conn); in ftp_state_loggedin()
2569 return result; in ftp_state_loggedin()
2576 CURLcode result = CURLE_OK; in ftp_state_user_resp() local
2584 result = Curl_pp_sendf(data, &ftpc->pp, "PASS %s", in ftp_state_user_resp()
2586 if(!result) in ftp_state_user_resp()
2592 result = ftp_state_loggedin(data); in ftp_state_user_resp()
2596 result = Curl_pp_sendf(data, &ftpc->pp, "ACCT %s", in ftp_state_user_resp()
2598 if(!result) in ftp_state_user_resp()
2603 result = CURLE_LOGIN_DENIED; in ftp_state_user_resp()
2615 result = in ftp_state_user_resp()
2618 if(!result) { in ftp_state_user_resp()
2625 result = CURLE_LOGIN_DENIED; in ftp_state_user_resp()
2628 return result; in ftp_state_user_resp()
2635 CURLcode result = CURLE_OK; in ftp_state_acct_resp() local
2638 result = CURLE_FTP_WEIRD_PASS_REPLY; /* FIX */ in ftp_state_acct_resp()
2641 result = ftp_state_loggedin(data); in ftp_state_acct_resp()
2643 return result; in ftp_state_acct_resp()
2650 CURLcode result; in ftp_statemachine() local
2660 result = ftp_readresp(data, FIRSTSOCKET, pp, &ftpcode, &nread); in ftp_statemachine()
2661 if(result) in ftp_statemachine()
2662 return result; in ftp_statemachine()
2719 result = Curl_pp_sendf(data, &ftpc->pp, "AUTH %s", in ftp_statemachine()
2721 if(!result) in ftp_statemachine()
2725 result = ftp_state_user(data, conn); in ftp_statemachine()
2745 result = Curl_ssl_cfilter_add(data, conn, FIRSTSOCKET); in ftp_statemachine()
2746 if(result) { in ftp_statemachine()
2751 result = Curl_conn_connect(data, FIRSTSOCKET, TRUE, &done); in ftp_statemachine()
2752 if(!result) { in ftp_statemachine()
2755 result = ftp_state_user(data, conn); in ftp_statemachine()
2761 result = Curl_pp_sendf(data, &ftpc->pp, "AUTH %s", in ftp_statemachine()
2768 result = CURLE_USE_SSL_FAILED; in ftp_statemachine()
2771 result = ftp_state_user(data, conn); in ftp_statemachine()
2777 result = ftp_state_user_resp(data, ftpcode); in ftp_statemachine()
2781 result = ftp_state_acct_resp(data, ftpcode); in ftp_statemachine()
2785 result = in ftp_statemachine()
2788 if(!result) in ftp_statemachine()
2806 result = Curl_pp_sendf(data, &ftpc->pp, "%s", "CCC"); in ftp_statemachine()
2807 if(!result) in ftp_statemachine()
2811 result = ftp_state_pwd(data, conn); in ftp_statemachine()
2822 result = Curl_ssl_cfilter_remove(data, FIRSTSOCKET, in ftp_statemachine()
2825 if(result) in ftp_statemachine()
2828 if(!result) in ftp_statemachine()
2830 result = ftp_state_pwd(data, conn); in ftp_statemachine()
2860 result = Curl_dyn_addn(&out, &ptr[1], 1); in ftp_statemachine()
2871 result = Curl_dyn_addn(&out, ptr, 1); in ftp_statemachine()
2872 if(result) in ftp_statemachine()
2873 return result; in ftp_statemachine()
2891 result = Curl_pp_sendf(data, &ftpc->pp, "%s", "SYST"); in ftp_statemachine()
2892 if(result) { in ftp_statemachine()
2894 return result; in ftp_statemachine()
2942 result = Curl_pp_sendf(data, &ftpc->pp, "%s", "SITE NAMEFMT 1"); in ftp_statemachine()
2943 if(result) { in ftp_statemachine()
2945 return result; in ftp_statemachine()
2984 result = CURLE_QUOTE_ERROR; in ftp_statemachine()
2987 result = ftp_state_quote(data, FALSE, ftpc->state); in ftp_statemachine()
3003 result = Curl_pp_sendf(data, &ftpc->pp, "MKD %s", in ftp_statemachine()
3005 if(!result) in ftp_statemachine()
3013 result = CURLE_REMOTE_ACCESS_DENIED; in ftp_statemachine()
3021 result = Curl_pp_sendf(data, &ftpc->pp, "CWD %s", in ftp_statemachine()
3024 result = ftp_state_mdtm(data); in ftp_statemachine()
3032 result = CURLE_REMOTE_ACCESS_DENIED; in ftp_statemachine()
3037 result = Curl_pp_sendf(data, &ftpc->pp, "CWD %s", in ftp_statemachine()
3043 result = ftp_state_mdtm_resp(data, ftpcode); in ftp_statemachine()
3050 result = ftp_state_type_resp(data, ftpcode, ftpc->state); in ftp_statemachine()
3056 result = ftp_state_size_resp(data, ftpcode, ftpc->state); in ftp_statemachine()
3061 result = ftp_state_rest_resp(data, conn, ftpcode, ftpc->state); in ftp_statemachine()
3070 result = ftp_state_use_pasv(data, conn); in ftp_statemachine()
3074 result = ftp_state_pasv_resp(data, ftpcode); in ftp_statemachine()
3078 result = ftp_state_port_resp(data, ftpcode); in ftp_statemachine()
3083 result = ftp_state_get_resp(data, ftpcode, ftpc->state); in ftp_statemachine()
3087 result = ftp_state_stor_resp(data, ftpcode, ftpc->state); in ftp_statemachine()
3098 return result; in ftp_statemachine()
3108 CURLcode result = Curl_pp_statemach(data, &ftpc->pp, FALSE, FALSE); in ftp_multi_statemach() local
3115 return result; in ftp_multi_statemach()
3123 CURLcode result = CURLE_OK; in ftp_block_statemach() local
3126 result = Curl_pp_statemach(data, pp, TRUE, TRUE /* disconnecting */); in ftp_block_statemach()
3127 if(result) in ftp_block_statemach()
3131 return result; in ftp_block_statemach()
3145 CURLcode result; in ftp_connect() local
3159 result = Curl_conn_connect(data, FIRSTSOCKET, TRUE, done); in ftp_connect()
3160 if(result) in ftp_connect()
3161 return result; in ftp_connect()
3171 result = ftp_multi_statemach(data, done); in ftp_connect()
3173 return result; in ftp_connect()
3194 CURLcode result = CURLE_OK; in ftp_done() local
3229 result = status; /* use the already set error code */ in ftp_done()
3242 if(!result) in ftp_done()
3244 result = Curl_urldecode(ftp->path, 0, &rawPath, &pathLen, in ftp_done()
3246 if(result) { in ftp_done()
3290 if(!result && ftpc->dont_check && data->req.maxdownload > 0) { in ftp_done()
3292 result = Curl_pp_sendf(data, pp, "%s", "ABOR"); in ftp_done()
3293 if(result) { in ftp_done()
3295 curl_easy_strerror(result)); in ftp_done()
3304 if(!result && (ftp->transfer == PPTRANSFER_BODY) && ftpc->ctl_valid && in ftp_done()
3317 result = Curl_GetFTPResponse(data, &nread, &ftpcode); in ftp_done()
3321 if(!nread && (CURLE_OPERATION_TIMEDOUT == result)) { in ftp_done()
3327 if(result) { in ftp_done()
3329 return result; in ftp_done()
3337 return result; in ftp_done()
3348 result = CURLE_REMOTE_DISK_FULL; in ftp_done()
3352 result = CURLE_PARTIAL_FILE; in ftp_done()
3358 if(result || premature) in ftp_done()
3370 result = CURLE_PARTIAL_FILE; in ftp_done()
3379 result = CURLE_PARTIAL_FILE; in ftp_done()
3385 result = CURLE_FTP_COULDNT_RETR_FILE; in ftp_done()
3394 if(!status && !result && !premature && data->set.postquote) in ftp_done()
3395 result = ftp_sendquote(data, conn, data->set.postquote); in ftp_done()
3396 CURL_TRC_FTP(data, "[%s] done, result=%d", FTP_DSTATE(data), result); in ftp_done()
3398 return result; in ftp_done()
3425 CURLcode result; in ftp_sendquote() local
3438 result = Curl_pp_sendf(data, &ftpc->pp, "%s", cmd); in ftp_sendquote()
3439 if(!result) { in ftp_sendquote()
3441 result = Curl_GetFTPResponse(data, &nread, &ftpcode); in ftp_sendquote()
3443 if(result) in ftp_sendquote()
3444 return result; in ftp_sendquote()
3483 CURLcode result; in ftp_nb_type() local
3491 result = Curl_pp_sendf(data, &ftpc->pp, "TYPE %c", want); in ftp_nb_type()
3492 if(!result) { in ftp_nb_type()
3498 return result; in ftp_nb_type()
3538 CURLcode result = CURLE_OK; in ftp_do_more() local
3557 result = Curl_conn_connect(data, SECONDARYSOCKET, FALSE, &connected); in ftp_do_more()
3558 if(result || (!connected && !is_eptr && in ftp_do_more()
3560 if(result && !is_eptr && (ftpc->count1 == 0)) { in ftp_do_more()
3566 return result; in ftp_do_more()
3576 result = ftp_multi_statemach(data, &complete); in ftp_do_more()
3582 if(result || !ftpc->wait_data_conn) in ftp_do_more()
3583 return result; in ftp_do_more()
3598 result = Curl_conn_connect(data, SECONDARYSOCKET, TRUE, &serv_conned); in ftp_do_more()
3599 if(result) in ftp_do_more()
3600 return result; /* Failed to accept data connection */ in ftp_do_more()
3605 result = InitiateTransfer(data); in ftp_do_more()
3607 if(result) in ftp_do_more()
3608 return result; in ftp_do_more()
3614 result = ftp_check_ctrl_on_data_wait(data); in ftp_do_more()
3615 if(result) in ftp_do_more()
3616 return result; in ftp_do_more()
3620 result = ftp_nb_type(data, conn, data->state.prefer_ascii, in ftp_do_more()
3622 if(result) in ftp_do_more()
3623 return result; in ftp_do_more()
3625 result = ftp_multi_statemach(data, &complete); in ftp_do_more()
3632 result = Curl_range(data); in ftp_do_more()
3634 if(result == CURLE_OK && data->req.maxdownload >= 0) { in ftp_do_more()
3639 if(result) in ftp_do_more()
3648 result = ftp_nb_type(data, conn, TRUE, FTP_LIST_TYPE); in ftp_do_more()
3649 if(result) in ftp_do_more()
3650 return result; in ftp_do_more()
3655 result = ftp_nb_type(data, conn, data->state.prefer_ascii, in ftp_do_more()
3657 if(result) in ftp_do_more()
3658 return result; in ftp_do_more()
3661 result = ftp_multi_statemach(data, &complete); in ftp_do_more()
3664 return result; in ftp_do_more()
3674 (int)result); in ftp_do_more()
3677 return result; in ftp_do_more()
3696 CURLcode result = CURLE_OK; in ftp_perform() local
3709 result = ftp_state_quote(data, TRUE, FTP_QUOTE); in ftp_perform()
3710 if(result) in ftp_perform()
3711 return result; in ftp_perform()
3714 result = ftp_multi_statemach(data, dophase_done); in ftp_perform()
3728 return result; in ftp_perform()
3745 CURLcode result = CURLE_OK; in init_wc_data() local
3779 result = CURLE_OUT_OF_MEMORY; in init_wc_data()
3786 result = CURLE_OUT_OF_MEMORY; in init_wc_data()
3798 result = ftp_parse_url_path(data); in init_wc_data()
3799 if(result) { in init_wc_data()
3805 result = CURLE_OUT_OF_MEMORY; in init_wc_data()
3829 return result; in init_wc_data()
3836 CURLcode result = CURLE_OK; in wc_statemach() local
3841 result = init_wc_data(data); in wc_statemach()
3844 return result; in wc_statemach()
3845 wildcard->state = result ? CURLWC_ERROR : CURLWC_MATCHING; in wc_statemach()
3846 return result; in wc_statemach()
3913 result = ftp_parse_url_path(data); in wc_statemach()
3914 if(result) in wc_statemach()
3915 return result; in wc_statemach()
3927 return result; in wc_statemach()
3944 result = CURLE_OK; in wc_statemach()
3946 result = Curl_ftp_parselist_geterror(ftpwc->parser); in wc_statemach()
3948 wildcard->state = result ? CURLWC_ERROR : CURLWC_DONE; in wc_statemach()
3949 return result; in wc_statemach()
3959 return result; in wc_statemach()
3976 CURLcode result = CURLE_OK; in ftp_do() local
3988 result = Curl_cwriter_create(&ftp_lc_writer, data, &ftp_cw_lc, in ftp_do()
3990 if(result) in ftp_do()
3991 return result; in ftp_do()
3993 result = Curl_cwriter_add(data, ftp_lc_writer); in ftp_do()
3994 if(result) { in ftp_do()
3996 return result; in ftp_do()
4002 result = wc_statemach(data); in ftp_do()
4008 if(result) /* error, loop or skipping the file */ in ftp_do()
4009 return result; in ftp_do()
4012 result = ftp_parse_url_path(data); in ftp_do()
4013 if(result) in ftp_do()
4014 return result; in ftp_do()
4017 result = ftp_regular_transfer(data, done); in ftp_do()
4019 return result; in ftp_do()
4034 CURLcode result = CURLE_OK; in ftp_quit() local
4037 result = Curl_pp_sendf(data, &conn->proto.ftpc.pp, "%s", "QUIT"); in ftp_quit()
4038 if(result) { in ftp_quit()
4040 curl_easy_strerror(result)); in ftp_quit()
4044 return result; in ftp_quit()
4049 result = ftp_block_statemach(data, conn); in ftp_quit()
4052 return result; in ftp_quit()
4120 CURLcode result = CURLE_OK; in ftp_parse_url_path() local
4128 result = Curl_urldecode(ftp->path, 0, &rawPath, &pathLen, REJECT_CTRL); in ftp_parse_url_path()
4129 if(result) { in ftp_parse_url_path()
4131 return result; in ftp_parse_url_path()
4267 CURLcode result = ftp_do_more(data, &completed); in ftp_dophase_done() local
4269 if(result) { in ftp_dophase_done()
4271 return result; in ftp_dophase_done()
4291 CURLcode result = ftp_multi_statemach(data, dophase_done); in ftp_doing() local
4293 if(result) in ftp_doing()
4296 result = ftp_dophase_done(data, FALSE /* not connected */); in ftp_doing()
4300 return result; in ftp_doing()
4319 CURLcode result = CURLE_OK; in ftp_regular_transfer() local
4332 result = ftp_perform(data, in ftp_regular_transfer()
4336 if(!result) { in ftp_regular_transfer()
4342 result = ftp_dophase_done(data, connected); in ftp_regular_transfer()
4344 if(result) in ftp_regular_transfer()
4345 return result; in ftp_regular_transfer()
4350 return result; in ftp_regular_transfer()
4358 CURLcode result = CURLE_OK; in ftp_setup_connection() local
4422 CURL_TRC_FTP(data, "[%s] setup connection -> %d", FTP_CSTATE(conn), result); in ftp_setup_connection()
4423 return result; in ftp_setup_connection()