1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-22 17: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:
Ilya Shipitsin 2018-11-04 01:02:51 +05:00
parent 87702f0f7d
commit dcc684ea28

View File

@ -5578,8 +5578,6 @@ UINT StAddAccess(ADMIN *a, RPC_ADD_ACCESS *t)
t->Access.Jitter = t->Access.Delay = t->Access.Loss = 0;
}
if (no_include)
{
if (no_include)
{
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));
}
}
}
AddAccessList(h, &t->Access);