1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-22 17:39:53 +03:00

src/Cedar/Client.c: Array compared against NULL is always false

found by coverity
This commit is contained in:
Ilya Shipitsin 2018-08-12 14:59:08 +05:00
parent 4f02bafc66
commit b8d5a85b0e

View File

@ -8941,14 +8941,8 @@ bool CtSetPassword(CLIENT *c, RPC_CLIENT_PASSWORD *pass)
{ {
return false; return false;
} }
if (pass->Password == NULL)
{ str = pass->Password;
str = "";
}
else
{
str = pass->Password;
}
if (StrCmp(str, "********") != 0) if (StrCmp(str, "********") != 0)
{ {