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/telnet.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/telnet.c')
-rw-r--r-- | lib/telnet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/telnet.c b/lib/telnet.c index a81bb81c3..e70997324 100644 --- a/lib/telnet.c +++ b/lib/telnet.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -781,7 +781,7 @@ static CURLcode check_telnet_options(struct Curl_easy *data) /* Add the user name as an environment variable if it was given on the command line */ - if(conn->bits.user_passwd) { + if(data->state.aptr.user) { msnprintf(option_arg, sizeof(option_arg), "USER,%s", conn->user); beg = curl_slist_append(tn->telnet_vars, option_arg); if(!beg) { |