diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-12-09 15:03:14 -0800 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-12-09 15:03:14 -0800 |
commit | e57fb22a3df10058cf6513ffd7b56e43e3bd3c42 (patch) | |
tree | edbb636b5ab1391f59b6385484e88f9208dca675 /src | |
parent | e57ba13cf60fee1d3797607c384fcae7b61b13f6 (diff) |
Add another NULL check
Diffstat (limited to 'src')
-rw-r--r-- | src/core/iomgr/tcp_server_posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/iomgr/tcp_server_posix.c b/src/core/iomgr/tcp_server_posix.c index cf729b6f28..0243ef8ae4 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: |