aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Yuchen Zeng <zyc@google.com>2016-12-19 13:51:58 -0800
committerGravatar Yuchen Zeng <zyc@google.com>2016-12-19 13:51:58 -0800
commitb810b85e5226a9a096c7fcfbfb4bad8d70ca3e7c (patch)
tree5406d59f717007cc74b3daf2155178c488af59cc
parent4e00a995f2fb0810625f9d7947a70cbc5380f1bb (diff)
Get wrapped endpoint's fd in secure_endpoint's endpoint_get_fd
-rw-r--r--src/core/lib/security/transport/secure_endpoint.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/lib/security/transport/secure_endpoint.c b/src/core/lib/security/transport/secure_endpoint.c
index 1b278410e8..331a8f1835 100644
--- a/src/core/lib/security/transport/secure_endpoint.c
+++ b/src/core/lib/security/transport/secure_endpoint.c
@@ -372,7 +372,10 @@ static char *endpoint_get_peer(grpc_endpoint *secure_ep) {
return grpc_endpoint_get_peer(ep->wrapped_ep);
}
-static int endpoint_get_fd(grpc_endpoint *secure_ep) { return -1; }
+static int endpoint_get_fd(grpc_endpoint *secure_ep) {
+ secure_endpoint *ep = (secure_endpoint *)secure_ep;
+ return grpc_endpoint_get_fd(ep->wrapped_ep);
+}
static grpc_workqueue *endpoint_get_workqueue(grpc_endpoint *secure_ep) {
secure_endpoint *ep = (secure_endpoint *)secure_ep;