1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-22 09:29:52 +03:00

src/Mayaqua/TcpIp.c: remove redundant condition

src/Mayaqua/TcpIp.c	4236	warn	V560 A part of conditional expression is always true: o2 == NULL.
This commit is contained in:
Ilya Shipitsin 2021-04-24 12:47:29 +05:00
parent 285e322171
commit cf318d7219

View File

@ -4233,15 +4233,16 @@ BUF *DhcpModify(DHCP_MODIFY_OPTION *m, void *data, UINT size)
} }
} }
if (ok && o2 == NULL) if (ok)
{ {
o2 = NewDhcpOption(o->Id, o->Data, o->Size); o2 = NewDhcpOption(o->Id, o->Data, o->Size);
if (o2 != NULL)
{
Add(opt_list2, o2);
}
} }
if (o2 != NULL)
{
Add(opt_list2, o2);
}
} }
opt_buf = BuildDhcpOptionsBuf(opt_list2); opt_buf = BuildDhcpOptionsBuf(opt_list2);