aboutsummaryrefslogtreecommitdiff
path: root/lib/telnet.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-07-19 23:56:33 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-07-19 23:56:33 +0000
commit52b631fadecb5ff5f038badfd79055e7d4272927 (patch)
tree27e4b5c01914b8fab19f458b124fffe8455211b2 /lib/telnet.c
parent2f0bc9d1f74236bec433d0681f9893db6f22694e (diff)
Access the user and passwd fields from the connectdata struct now instead
of the sessionhandle struct, as that was not good.
Diffstat (limited to 'lib/telnet.c')
-rw-r--r--lib/telnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/telnet.c b/lib/telnet.c
index e345caaa3..cb6e3ed58 100644
--- a/lib/telnet.c
+++ b/lib/telnet.c
@@ -756,7 +756,7 @@ static int check_telnet_options(struct connectdata *conn)
if(conn->bits.user_passwd)
{
char *buf = malloc(256);
- sprintf(buf, "USER,%s", data->state.user);
+ sprintf(buf, "USER,%s", conn->user);
tn->telnet_vars = curl_slist_append(tn->telnet_vars, buf);
tn->us_preferred[CURL_TELOPT_NEW_ENVIRON] = CURL_YES;