Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

win: Actually exit if uv_udp_bind only wants IPv6.

  • Loading branch information...
erickt authored and ry committed Sep 25, 2011
1 parent efa720d commit 17d4686bad82956cd6e283afa63327ace2e94b33
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/win/udp.c
@@ -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) {

0 comments on commit 17d4686

Please sign in to comment.
You can’t perform that action at this time.