summaryrefslogtreecommitdiff
path: root/lib/smb.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-02-14 17:33:50 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-02-16 10:28:31 +0100
commit7d600ad1c3959bbf78dc14498335b8a73cfc790c (patch)
treedcd3c59fdda6d9e832eebd6da6dcdb8ed6be58a6 /lib/smb.c
parenteb13cc292767ef75e061ab1efa4644a839dab837 (diff)
downloadcurl-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/smb.c')
-rw-r--r--lib/smb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/smb.c b/lib/smb.c
index e756ce372..8f44704a2 100644
--- a/lib/smb.c
+++ b/lib/smb.c
@@ -262,7 +262,7 @@ static CURLcode smb_connect(struct Curl_easy *data, bool *done)
(void) done;
/* Check we have a username and password to authenticate with */
- if(!conn->bits.user_passwd)
+ if(!data->state.aptr.user)
return CURLE_LOGIN_DENIED;
/* Initialize the connection state */