win/udp: fix bug in getsockopt() return value check
This commit is contained in:
parent
6b1cca3975
commit
36883f29ea
@ -93,7 +93,7 @@ static int uv_udp_set_socket(uv_loop_t* loop, uv_udp_t* handle, SOCKET socket,
|
|||||||
/* if the user is using the default UDP driver (AFD) and has no other */
|
/* if the user is using the default UDP driver (AFD) and has no other */
|
||||||
/* LSPs stacked on top. Here we check whether that is the case. */
|
/* LSPs stacked on top. Here we check whether that is the case. */
|
||||||
opt_len = (int) sizeof info;
|
opt_len = (int) sizeof info;
|
||||||
if (!getsockopt(socket,
|
if (getsockopt(socket,
|
||||||
SOL_SOCKET,
|
SOL_SOCKET,
|
||||||
SO_PROTOCOL_INFOW,
|
SO_PROTOCOL_INFOW,
|
||||||
(char*) &info,
|
(char*) &info,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user