summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-05-28 22:06:36 +0000
committerBen Noordhuis <info@bnoordhuis.nl>2012-05-28 22:10:38 +0000
commit0bd410a66a379b6dbd1fa1458829a0aa623c5363 (patch)
treecf055c35dc9d399c5de31704c77259252999eac5
parentf721d02c8a356c1a9a40d8bf7099186749f01978 (diff)
downloadnode-new-0bd410a66a379b6dbd1fa1458829a0aa623c5363.tar.gz
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.
-rw-r--r--deps/uv/src/unix/core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/deps/uv/src/unix/core.c b/deps/uv/src/unix/core.c
index 657397becf..24d10a10a5 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;