mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
fixed the missing getftpresponse edits
This commit is contained in:
parent
ae2ecfc5cb
commit
09da2c1767
@ -247,8 +247,7 @@ krb4_auth(void *app_data, struct connectdata *conn)
|
||||
|
||||
Curl_ftpsendf(conn, "ADAT %s", p);
|
||||
|
||||
nread = Curl_GetFTPResponse(conn->firstsocket,
|
||||
conn->data->state.buffer, conn, NULL);
|
||||
nread = Curl_GetFTPResponse(conn->data->state.buffer, conn, NULL);
|
||||
if(nread < 0)
|
||||
return /*CURLE_OPERATION_TIMEOUTED*/-1;
|
||||
free(p);
|
||||
@ -313,8 +312,7 @@ void Curl_krb_kauth(struct connectdata *conn)
|
||||
|
||||
save = Curl_set_command_prot(conn, prot_private);
|
||||
|
||||
Curl_ftpsendf(conn,
|
||||
"SITE KAUTH %s", conn->data->state.user);
|
||||
Curl_ftpsendf(conn, "SITE KAUTH %s", conn->data->state.user);
|
||||
|
||||
nread = Curl_GetFTPResponse(conn->data->state.buffer,
|
||||
conn, NULL);
|
||||
|
@ -491,8 +491,7 @@ Curl_sec_login(struct connectdata *conn)
|
||||
Curl_ftpsendf(conn,
|
||||
"AUTH %s", (*m)->name);
|
||||
/* wait for feedback */
|
||||
nread = Curl_GetFTPResponse(conn->firstsocket,
|
||||
conn->data->state.buffer, conn, NULL);
|
||||
nread = Curl_GetFTPResponse(conn->data->state.buffer, conn, NULL);
|
||||
if(nread < 0)
|
||||
return /*CURLE_OPERATION_TIMEOUTED*/-1;
|
||||
if(/*ret != CONTINUE*/conn->data->state.buffer[0] != '3'){
|
||||
|
Loading…
Reference in New Issue
Block a user