mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
sam: fix using pointer to local variable that is out of scope
This commit is contained in:
parent
1416a693e7
commit
4772a508dc
@ -115,6 +115,9 @@ bool SmbAuthenticate(char* name, char* password, char* domainname, char* groupna
|
||||
char ntlm_timeout[32];
|
||||
char* proc_parameter[6];
|
||||
|
||||
// DNS Name 255 chars + OU names are limited to 64 characters + cmdline 32 + 1
|
||||
char requiremember[352];
|
||||
|
||||
if (name == NULL || password == NULL || domainname == NULL || groupname == NULL)
|
||||
{
|
||||
Debug("Sam.c - SmbAuthenticate - wrong password parameter\n");
|
||||
@ -156,9 +159,6 @@ bool SmbAuthenticate(char* name, char* password, char* domainname, char* groupna
|
||||
|
||||
if (strlen(groupname) > 1)
|
||||
{
|
||||
// DNS Name 255 chars + OU names are limited to 64 characters + cmdline 32 + 1
|
||||
char requiremember[352];
|
||||
|
||||
// Truncate string if unsafe char
|
||||
EnSafeStr(groupname, '\0');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user