mirror of
https://github.com/curl/curl.git
synced 2026-08-02 17:00:29 +03:00
lib: stop NULL-checking conn->passwd and ->user
They always point to a string. The string might be zero length. Closes #19059
This commit is contained in:
parent
5e46318414
commit
62961d6cc5
3 changed files with 4 additions and 10 deletions
|
|
@ -2606,7 +2606,7 @@ static CURLcode ftp_state_user_resp(struct Curl_easy *data,
|
|||
/* 331 Password required for ...
|
||||
(the server requires to send the user's password too) */
|
||||
result = Curl_pp_sendf(data, &ftpc->pp, "PASS %s",
|
||||
data->conn->passwd ? data->conn->passwd : "");
|
||||
data->conn->passwd);
|
||||
if(!result)
|
||||
ftp_state(data, ftpc, FTP_PASS);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue