Skip to content

Commit

Permalink
Merge pull request #19766 from curv85/bad-socket-fixes
Browse files Browse the repository at this point in the history
catch the error if socket initialization fails
  • Loading branch information
Jiangtao Li committed Aug 26, 2019
2 parents e8bd422 + c914fbb commit 65233f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/lib/iomgr/tcp_server_custom.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 65233f7

Please sign in to comment.