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:
parent
285e322171
commit
cf318d7219
@ -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);
|
||||
}
|
||||
|
||||
if (o2 != NULL)
|
||||
{
|
||||
Add(opt_list2, o2);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
opt_buf = BuildDhcpOptionsBuf(opt_list2);
|
||||
|
Loading…
Reference in New Issue
Block a user