From 7d600ad1c3959bbf78dc14498335b8a73cfc790c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 14 Feb 2022 17:33:50 +0100 Subject: 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 --- lib/smb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/smb.c') 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 */ -- cgit v1.2.1