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:
Daniel Stenberg 2025-10-14 14:43:46 +02:00
parent 5e46318414
commit 62961d6cc5
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 4 additions and 10 deletions

View file

@ -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);