Correct the start index of zone parsing in C2P resolver (#26444)

pull/23346/head
apolcyn 4 years ago committed by GitHub
parent 03721b9389
commit a28df9cc47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/ext/filters/client_channel/resolver/google_c2p/google_c2p_resolver.cc

@ -195,7 +195,7 @@ void GoogleCloud2ProdResolver::ZoneQuery::OnDone(
gpr_log(GPR_ERROR, "could not parse zone from metadata server: %s",
std::string(body).c_str());
} else {
zone = std::string(body.substr(i));
zone = std::string(body.substr(i + 1));
}
}
resolver->ZoneQueryDone(std::move(zone));

Loading…
Cancel
Save