Skip to content
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

ovs: don't allow peers with the same name #353

Merged
merged 2 commits into from
May 2, 2023

Conversation

daniloegea
Copy link
Collaborator

@daniloegea daniloegea commented Apr 27, 2023

I found it thanks to a memory leak. If both peers have the same name, the netdef will end up with a netdef->peer_link pointing to itself and netdef->link strdup'ed twice.

Description

Checklist

  • Runs make check successfully.
  • Retains 100% code coverage (make check-coverage).
  • New/changed keys in YAML format are documented.
  • (Optional) Adds example YAML for new feature.
  • (Optional) Closes an open bug in Launchpad.

Copy link
Collaborator

@slyon slyon left a comment

Choose a reason for hiding this comment

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

lgtm.

But we might want to improve this error message and the other OVS messages a bit.

src/parse.c Outdated Show resolved Hide resolved
Copy link
Collaborator

@slyon slyon left a comment

Choose a reason for hiding this comment

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

+1

@slyon slyon merged commit bb2d088 into canonical:main May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants