diff options
author | Nicolas Noble <nnoble@google.com> | 2015-11-18 17:19:45 -0800 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2015-11-19 02:35:09 +0100 |
commit | 5eb4e1caef902d65df7c7d519b2c2890998d153f (patch) | |
tree | 4de25b8d79bec69d5058f52036775ba5b494b7b9 /src/core/security | |
parent | 75b53d6a5d891fa33a9173318b1446faeaf154e4 (diff) |
Adding grpc_tcp_listener as an actual object being returned.
Diffstat (limited to 'src/core/security')
-rw-r--r-- | src/core/security/server_secure_chttp2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/security/server_secure_chttp2.c b/src/core/security/server_secure_chttp2.c index 851e0cfab3..1ea269bf8f 100644 --- a/src/core/security/server_secure_chttp2.c +++ b/src/core/security/server_secure_chttp2.c @@ -249,9 +249,11 @@ int grpc_server_add_secure_http2_port(grpc_server *server, const char *addr, } for (i = 0; i < resolved->naddrs; i++) { - port_temp = grpc_tcp_server_add_port( + grpc_tcp_listener *listener; + listener = grpc_tcp_server_add_port( tcp, (struct sockaddr *)&resolved->addrs[i].addr, resolved->addrs[i].len); + port_temp = grpc_tcp_listener_get_port(listener); if (port_temp >= 0) { if (port_num == -1) { port_num = port_temp; |