Merge pull request #19766 from curv85/bad-socket-fixes

catch the error if socket initialization fails
pull/20085/head
Jiangtao Li 6 years ago committed by GitHub
commit 65233f7818
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/lib/iomgr/tcp_server_custom.cc

@ -392,7 +392,7 @@ static grpc_error* tcp_server_add_port(grpc_tcp_server* s,
socket->endpoint = nullptr;
socket->listener = nullptr;
socket->connector = nullptr;
grpc_custom_socket_vtable->init(socket, family);
error = grpc_custom_socket_vtable->init(socket, family);
if (error == GRPC_ERROR_NONE) {
error = add_socket_to_server(s, socket, addr, port_index, &sp);

Loading…
Cancel
Save