diff --git a/src/win/udp.c b/src/win/udp.c index 0486ba06..08449d0d 100644 --- a/src/win/udp.c +++ b/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) {