We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d86acba + ffd7b27 commit 468296bCopy full SHA for 468296b
src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc
@@ -467,8 +467,7 @@ static bool inner_resolve_as_ip_literal_locked(
467
const char* name, const char* default_port,
468
std::unique_ptr<grpc_core::ServerAddressList>* addrs, std::string* host,
469
std::string* port, std::string* hostport) {
470
- grpc_core::SplitHostPort(name, host, port);
471
- if (host->empty()) {
+ if (!grpc_core::SplitHostPort(name, host, port)) {
472
gpr_log(GPR_ERROR,
473
"Failed to parse %s to host:port while attempting to resolve as ip "
474
"literal.",
0 commit comments