Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
win: Actually exit if uv_udp_bind only wants IPv6.
Browse files Browse the repository at this point in the history
  • Loading branch information
erickt authored and ry committed Sep 28, 2011
1 parent efa720d commit 17d4686
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/win/udp.c
Expand Up @@ -149,6 +149,7 @@ static int uv__bind(uv_udp_t* handle, int domain, struct sockaddr* addr,
if ((flags & UV_UDP_IPV6ONLY) && domain != AF_INET6) {
/* UV_UDP_IPV6ONLY is supported only for IPV6 sockets */
uv_set_sys_error(loop, UV_EINVAL);
return -1;
}

if (handle->socket == INVALID_SOCKET) {
Expand Down

0 comments on commit 17d4686

Please sign in to comment.