aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/surface
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2015-12-09 10:47:18 -0800
committerGravatar yang-g <yangg@google.com>2015-12-09 10:47:18 -0800
commitfe9a975655735507b901787232a593122d01bce9 (patch)
tree6bb2aee699ee01b5c466068c9af35c826fac46de /src/core/surface
parent54834ba74be2eb58f12a5faac2d3c2c949ab4054 (diff)
Add a test for failing to add a port
Diffstat (limited to 'src/core/surface')
-rw-r--r--src/core/surface/server_chttp2.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/surface/server_chttp2.c b/src/core/surface/server_chttp2.c
index 990bc4aa23..08691c858b 100644
--- a/src/core/surface/server_chttp2.c
+++ b/src/core/surface/server_chttp2.c
@@ -101,9 +101,7 @@ int grpc_server_add_insecure_http2_port(grpc_server *server, const char *addr) {
}
tcp = grpc_tcp_server_create();
- if (!tcp) {
- goto error;
- }
+ GPR_ASSERT(tcp);
for (i = 0; i < resolved->naddrs; i++) {
grpc_tcp_listener *listener;