diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-02-14 17:33:50 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-02-16 10:28:31 +0100 |
commit | 7d600ad1c3959bbf78dc14498335b8a73cfc790c (patch) | |
tree | dcd3c59fdda6d9e832eebd6da6dcdb8ed6be58a6 /lib/imap.c | |
parent | eb13cc292767ef75e061ab1efa4644a839dab837 (diff) | |
download | curl-7d600ad1c3959bbf78dc14498335b8a73cfc790c.tar.gz |
urldata: remove conn->bits.user_passwd
The authentication status should be told by the transfer and not the
connection.
Reported-by: John H. Ayad
Fixes #8449
Closes #8451
Diffstat (limited to 'lib/imap.c')
-rw-r--r-- | lib/imap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/imap.c b/lib/imap.c index c043bfa3b..fb5a114d1 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -507,7 +507,7 @@ static CURLcode imap_perform_login(struct Curl_easy *data, /* Check we have a username and password to authenticate with and end the connect phase if we don't */ - if(!conn->bits.user_passwd) { + if(!data->state.aptr.user) { state(data, IMAP_STOP); return result; @@ -608,7 +608,7 @@ static CURLcode imap_perform_authentication(struct Curl_easy *data, /* Check if already authenticated OR if there is enough data to authenticate with and end the connect phase if we don't */ if(imapc->preauth || - !Curl_sasl_can_authenticate(&imapc->sasl, conn)) { + !Curl_sasl_can_authenticate(&imapc->sasl, data)) { state(data, IMAP_STOP); return result; } |