mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
src/Cedar/Admin.c: remove unused condition, make coverity scan cleaner
HubName == NULL always evaluated as "false", so we can remove it
This commit is contained in:
parent
828d3b2ffb
commit
191c680ff7
@ -188,7 +188,7 @@
|
||||
return err; \
|
||||
}
|
||||
#define CHECK_RIGHT \
|
||||
if (a->ServerAdmin == false && (t->HubName == NULL || StrCmpi(a->HubName, t->HubName) != 0)) \
|
||||
if (a->ServerAdmin == false && (StrCmpi(a->HubName, t->HubName) != 0)) \
|
||||
return ERR_NOT_ENOUGH_RIGHT; \
|
||||
if (IsEmptyStr(t->HubName)) \
|
||||
return ERR_INVALID_PARAMETER;
|
||||
|
Loading…
Reference in New Issue
Block a user