1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-22 17:39:53 +03:00

Fix some errors that shouldn't have existed to start with...

This commit is contained in:
root 2014-07-25 13:42:22 -04:00
parent 2e231be197
commit 9e55db0623

View File

@ -214,9 +214,9 @@ bool SamAuthUserByPlainPassword(CONNECTION *c, HUB *hub, char *username, char *p
if( h->RadiusIncludeRealm ) if( h->RadiusIncludeRealm )
{ {
char name_and_realm[MAX_SIZE]; char name_and_realm[MAX_SIZE];
name_and_realm = StrCpy(name_and_realm, MAX_SIZE, username); StrCpy(name_and_realm, MAX_SIZE, username);
name_and_realm = StrCpy(name_and_realm, (MAX_SIZE - StrLen(name_and_realm)), "@"); StrCat(name_and_realm, (MAX_SIZE - StrLen(name_and_realm)), "@");
name_and_realm = StrCpy(name_and_realm, (MAX_SIZE - StrLen(name_and_realm)), hub.name); StrCat(name_and_realm, (MAX_SIZE - StrLen(name_and_realm)), hub->Name);
name = CopyStrToUni(name_and_realm); name = CopyStrToUni(name_and_realm);
} }
else else