mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
src/Mayaqua/Network.c: silence coverity on "Unchecked return value"
This commit is contained in:
parent
0e5d432ae4
commit
ddd0c96d46
@ -11288,7 +11288,7 @@ SOCK *NewUDP4(UINT port, IP *ip)
|
||||
if (port != 0)
|
||||
{
|
||||
bool true_flag = true;
|
||||
setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char *)&true_flag, sizeof(bool));
|
||||
(void)setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char *)&true_flag, sizeof(bool));
|
||||
if (bind(s, (struct sockaddr *)&addr, sizeof(addr)) != 0)
|
||||
{
|
||||
bool false_flag = false;
|
||||
@ -11385,7 +11385,7 @@ SOCK *NewUDP6(UINT port, IP *ip)
|
||||
if (port != 0)
|
||||
{
|
||||
bool true_flag = true;
|
||||
setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char *)&true_flag, sizeof(bool));
|
||||
(void)setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char *)&true_flag, sizeof(bool));
|
||||
if (bind(s, (struct sockaddr *)&addr, sizeof(addr)) != 0)
|
||||
{
|
||||
bool false_flag = false;
|
||||
|
Loading…
Reference in New Issue
Block a user