Skip to content

agent: fix regression in SAN check for agent#40832

Merged
istio-testing merged 1 commit intoistio:masterfrom
howardjohn:agent/fix-err-san-check
Sep 6, 2022
Merged

agent: fix regression in SAN check for agent#40832
istio-testing merged 1 commit intoistio:masterfrom
howardjohn:agent/fix-err-san-check

Conversation

@howardjohn
Copy link
Copy Markdown
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
Copy Markdown

🤔 🐛 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
}

if host, _, err := net.SplitHostPort(agent.proxyConfig.DiscoveryAddress); err != nil {
if host, _, err := net.SplitHostPort(agent.proxyConfig.DiscoveryAddress); err == nil {
Copy link
Copy Markdown
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