mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-26 19:39:53 +03:00
src/Cedar/Admin.c: remove reccuring check
found by PVS analyzer src/Cedar/Admin.c 5583 err V571 Recurring check. The 'if (no_include)' condition was already verified in line 5581.
This commit is contained in:
parent
87702f0f7d
commit
dcc684ea28
@ -5578,8 +5578,6 @@ UINT StAddAccess(ADMIN *a, RPC_ADD_ACCESS *t)
|
|||||||
t->Access.Jitter = t->Access.Delay = t->Access.Loss = 0;
|
t->Access.Jitter = t->Access.Delay = t->Access.Loss = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (no_include)
|
|
||||||
{
|
|
||||||
if (no_include)
|
if (no_include)
|
||||||
{
|
{
|
||||||
if (StartWith(t->Access.SrcUsername, ACCESS_LIST_INCLUDED_PREFIX) ||
|
if (StartWith(t->Access.SrcUsername, ACCESS_LIST_INCLUDED_PREFIX) ||
|
||||||
@ -5594,7 +5592,6 @@ UINT StAddAccess(ADMIN *a, RPC_ADD_ACCESS *t)
|
|||||||
ClearStr(t->Access.DestUsername, sizeof(t->Access.DestUsername));
|
ClearStr(t->Access.DestUsername, sizeof(t->Access.DestUsername));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
AddAccessList(h, &t->Access);
|
AddAccessList(h, &t->Access);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user