Skip to content

Commit

Permalink
correct error
Browse files Browse the repository at this point in the history
  • Loading branch information
mirabilos committed Apr 14, 2023
1 parent ff41479 commit d3e0b34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ws2/lib/tc.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ ecnbits_tc(SOCKET socketfd, int af, unsigned char iptos)
}
break;
default:
errno = EAFNOSUPPORT;
#if defined(_WIN32) || defined(WIN32)
WSASetLastError(WSAEAFNOSUPPORT);
#endif
errno = WSAEAFNOSUPPORT;
return (2);
}
return (0);
Expand Down

0 comments on commit d3e0b34

Please sign in to comment.