aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/transport
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ext/transport')
-rw-r--r--src/core/ext/transport/chttp2/server/chttp2_server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/ext/transport/chttp2/server/chttp2_server.c b/src/core/ext/transport/chttp2/server/chttp2_server.c
index 9282d7ef89..50cbafab56 100644
--- a/src/core/ext/transport/chttp2/server/chttp2_server.c
+++ b/src/core/ext/transport/chttp2/server/chttp2_server.c
@@ -262,6 +262,7 @@ grpc_error *grpc_chttp2_server_add_port(
int port_temp;
grpc_error *err = GRPC_ERROR_NONE;
server_state *state = NULL;
+ grpc_error **errors = NULL;
*port_num = -1;
@@ -289,7 +290,7 @@ grpc_error *grpc_chttp2_server_add_port(
gpr_mu_init(&state->mu);
const size_t naddrs = resolved->naddrs;
- grpc_error **errors = gpr_malloc(sizeof(*errors) * naddrs);
+ errors = gpr_malloc(sizeof(*errors) * naddrs);
for (i = 0; i < naddrs; i++) {
errors[i] =
grpc_tcp_server_add_port(tcp_server, &resolved->addrs[i], &port_temp);