1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-11 00:49:02 +00:00

Remove more vestiges of Windows raw socket quirks

This commit is contained in:
dmiller
2020-01-16 19:12:57 +00:00
parent dd0ace6d4a
commit 8f3364a441

View File

@@ -292,8 +292,7 @@ int unblock_socket(int sd) {
#ifdef WIN32
unsigned long one = 1;
if (sd != 501) /* Hack related to WinIP Raw Socket support */
ioctlsocket(sd, FIONBIO, &one);
ioctlsocket(sd, FIONBIO, &one);
return 0;
#else
@@ -314,8 +313,7 @@ int block_socket(int sd) {
#ifdef WIN32
unsigned long options = 0;
if (sd != 501)
ioctlsocket(sd, FIONBIO, &options);
ioctlsocket(sd, FIONBIO, &options);
return 0;
#else