Skip to content

agent: fix regression in SAN check for agent #40832

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 6, 2022

Conversation

howardjohn
Copy link
Member

Fixes #40452, which is not on any release branch

We have the error check inverted, so it is never used
@howardjohn howardjohn added the release-notes-none Indicates a PR that does not require release notes. label Sep 6, 2022
@howardjohn howardjohn requested review from a team as code owners September 6, 2022 19:23
@istio-policy-bot
Copy link

🤔 🐛 You appear to be fixing a bug in Go code, yet your PR doesn't include updates to any test files. Did you forget to add a test?

Courtesy of your friendly test nag.

@istio-testing istio-testing added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Sep 6, 2022
@istio-testing istio-testing merged commit 13363a2 into istio:master Sep 6, 2022
@@ -726,7 +726,7 @@ func (p *XdsProxy) getTLSDialOption(agent *Agent) (grpc.DialOption, error) {
MinVersion: tls.VersionTLS12,
}

if host, _, err := net.SplitHostPort(agent.proxyConfig.DiscoveryAddress); err != nil {
if host, _, err := net.SplitHostPort(agent.proxyConfig.DiscoveryAddress); err == nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry my mistake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes-none Indicates a PR that does not require release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants