aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/tcp_uv.cc
diff options
context:
space:
mode:
authorGravatar Michael Lumish <mlumish@google.com>2018-04-03 17:54:38 -0700
committerGravatar GitHub <noreply@github.com>2018-04-03 17:54:38 -0700
commit93e67ca6c50cef62dc85a165a0ed63f23e2b0621 (patch)
treee971d5f1c95017d0d0252a50f5c37e91aab13756 /src/core/lib/iomgr/tcp_uv.cc
parent18042de3b5bb249263c8090cdd2d47f7ff4d6f53 (diff)
Update tcp_uv.cc
Diffstat (limited to 'src/core/lib/iomgr/tcp_uv.cc')
-rw-r--r--src/core/lib/iomgr/tcp_uv.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/lib/iomgr/tcp_uv.cc b/src/core/lib/iomgr/tcp_uv.cc
index 790cb95527..a06b8cb51c 100644
--- a/src/core/lib/iomgr/tcp_uv.cc
+++ b/src/core/lib/iomgr/tcp_uv.cc
@@ -196,8 +196,7 @@ static grpc_error* uv_socket_init_helper(uv_socket_t* uv_socket, int domain) {
if (domain == AF_INET || domain == AF_INET6) {
int enable = 1;
int fd;
- uv_socket_t* uv_socket = (uv_socket_t*)socket->impl;
- uv_fileno((uv_handle_t*)uv_socket->handle, &fd);
+ uv_fileno((uv_handle_t*)tcp, &fd);
// TODO Handle error here.
setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &enable, sizeof(enable));
}