mirror of
https://github.com/curl/curl.git
synced 2026-08-25 00:13:34 +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
|
|
@ -1057,8 +1057,7 @@ static CURLcode pop3_state_user_resp(struct Curl_easy *data, int pop3code,
|
|||
}
|
||||
else
|
||||
/* Send the PASS command */
|
||||
result = Curl_pp_sendf(data, &pop3c->pp, "PASS %s",
|
||||
conn->passwd ? conn->passwd : "");
|
||||
result = Curl_pp_sendf(data, &pop3c->pp, "PASS %s", conn->passwd);
|
||||
if(!result)
|
||||
pop3_state(data, POP3_PASS);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue