From 459bba240aa2366cf36e6a3ba3f95e07efefbc7b Mon Sep 17 00:00:00 2001 From: aaron-costello <56684862+aaron-costello@users.noreply.github.com> Date: Fri, 18 Oct 2019 23:03:27 +0000 Subject: [PATCH] smblib: Improve SMB server name maintenance (#494) --- lib/smblib/smblib.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/smblib/smblib.c b/lib/smblib/smblib.c index 545cc979b0..d5c9a08fdf 100644 --- a/lib/smblib/smblib.c +++ b/lib/smblib/smblib.c @@ -149,10 +149,10 @@ SMB_Handle_Type SMB_Connect_Server(SMB_Handle_Type Con_Handle, /* Now connect to the remote end, but first upper case the name of the service we are going to call, sine some servers want it in uppercase */ - for (i=0; i < strlen(server); i++) - called[i] = xtoupper(server[i]); + for (i=0; i < strlen(con -> desthost); i++) + called[i] = xtoupper(con -> desthost[i]); - called[strlen(server)] = 0; /* Make it a string */ + called[strlen(con -> desthost)] = 0; /* Make it a string */ for (i=0; i < strlen(con -> myname); i++) calling[i] = xtoupper(con -> myname[i]); @@ -265,10 +265,10 @@ SMB_Handle_Type SMB_Connect(SMB_Handle_Type Con_Handle, /* Now connect to the remote end, but first upper case the name of the service we are going to call, sine some servers want it in uppercase */ - for (i=0; i < strlen(host); i++) - called[i] = xtoupper(host[i]); + for (i=0; i < strlen(con -> desthost); i++) + called[i] = xtoupper(con -> desthost[i]); - called[strlen(host)] = 0; /* Make it a string */ + called[strlen(con -> desthost)] = 0; /* Make it a string */ for (i=0; i < strlen(con -> myname); i++) calling[i] = xtoupper(con -> myname[i]); -- 2.47.2