From 0bd410a66a379b6dbd1fa1458829a0aa623c5363 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 28 May 2012 22:06:36 +0000 Subject: [PATCH] deps: cherry-pick libuv commit 4690204 libuv cannot be upgraded right now (API change in upstream libuv) but this commit fixes a segmentation fault on SunOS systems, hence the cherry-pick. --- deps/uv/src/unix/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deps/uv/src/unix/core.c b/deps/uv/src/unix/core.c index 657397b..24d10a1 100644 --- a/deps/uv/src/unix/core.c +++ b/deps/uv/src/unix/core.c @@ -317,8 +317,7 @@ static int uv_getaddrinfo_done(eio_req* req_) { uv_getaddrinfo_t* req = req_->data; struct addrinfo *res = req->res; #if __sun - uv_getaddrinfo_t* handle = req->data; - size_t hostlen = strlen(handle->hostname); + size_t hostlen = strlen(req->hostname); #endif req->res = NULL; -- 2.7.4