mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-08 00:02:03 -04:00
windows: accept() socket handle could theoretically be 0
This commit is contained in:
parent
babe9e4f45
commit
0026600bfe
@ -230,7 +230,7 @@ int socketpair(int domain, int type, int protocol, int sv[2])
|
|||||||
connect(c, (struct sockaddr*)&addr, sizeof(addr)) == 0)
|
connect(c, (struct sockaddr*)&addr, sizeof(addr)) == 0)
|
||||||
{
|
{
|
||||||
sc = accept(s, NULL, NULL);
|
sc = accept(s, NULL, NULL);
|
||||||
if (sc > 0)
|
if (sc >= 0)
|
||||||
{
|
{
|
||||||
closesocket(s);
|
closesocket(s);
|
||||||
s = sc;
|
s = sc;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user