summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibuv/src/win/getaddrinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities/cmlibuv/src/win/getaddrinfo.c')
-rw-r--r--Utilities/cmlibuv/src/win/getaddrinfo.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Utilities/cmlibuv/src/win/getaddrinfo.c b/Utilities/cmlibuv/src/win/getaddrinfo.c
index 744f8e0..c13bfec 100644
--- a/Utilities/cmlibuv/src/win/getaddrinfo.c
+++ b/Utilities/cmlibuv/src/win/getaddrinfo.c
@@ -262,8 +262,7 @@ int uv_getaddrinfo(uv_loop_t* loop,
int err;
if (req == NULL || (node == NULL && service == NULL)) {
- err = WSAEINVAL;
- goto error;
+ return UV_EINVAL;
}
uv_req_init(loop, (uv_req_t*)req);