mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-23 01:49:53 +03:00
Fix some errors that shouldn't have existed to start with...
This commit is contained in:
parent
2e231be197
commit
9e55db0623
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user