From e57fb22a3df10058cf6513ffd7b56e43e3bd3c42 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Wed, 9 Dec 2015 15:03:14 -0800 Subject: [PATCH] Add another NULL check --- src/core/iomgr/tcp_server_posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/iomgr/tcp_server_posix.c b/src/core/iomgr/tcp_server_posix.c index cf729b6f284..0243ef8ae49 100644 --- a/src/core/iomgr/tcp_server_posix.c +++ b/src/core/iomgr/tcp_server_posix.c @@ -486,7 +486,7 @@ grpc_tcp_listener *grpc_tcp_server_add_port(grpc_tcp_server *s, addr_len = sizeof(addr4_copy); } sp = add_socket_to_server(s, fd, addr, addr_len); - sp->sibling = sp2; + if (sp) sp->sibling = sp2; if (sp2) sp2->is_sibling = 1; done: