deps: cherry-pick libuv commit 4690204
authorBen Noordhuis <info@bnoordhuis.nl>
Mon, 28 May 2012 22:06:36 +0000 (22:06 +0000)
committerBen Noordhuis <info@bnoordhuis.nl>
Mon, 28 May 2012 22:10:38 +0000 (22:10 +0000)
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

index 657397b..24d10a1 100644 (file)
@@ -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;