mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
socket-util: closesocket() for Windows.
For Windows sockets, one has to call closesocket() to close the sockets. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -810,7 +810,7 @@ exit:
|
||||
memset(ssp, 0, sizeof *ssp);
|
||||
}
|
||||
if (fd >= 0) {
|
||||
close(fd);
|
||||
closesocket(fd);
|
||||
fd = -1;
|
||||
}
|
||||
} else {
|
||||
@@ -958,7 +958,7 @@ error:
|
||||
if (ssp) {
|
||||
memset(ssp, 0, sizeof *ssp);
|
||||
}
|
||||
close(fd);
|
||||
closesocket(fd);
|
||||
return -error;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user