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

Fix nil pointer exception in error handling #696

Merged
merged 1 commit into from
Feb 21, 2023
Merged

Conversation

pappz
Copy link
Contributor

@pappz pappz commented Feb 17, 2023

Describe your changes

In case if the wgctrl.New() return with err, should not close the
resource.

Issue ticket number and link

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

@pappz pappz requested a review from mlsmaycon February 17, 2023 19:06
@pappz pappz merged commit c3ed08c into main Feb 21, 2023
@pappz pappz deleted the fix-interface-filter branch February 21, 2023 09:50
pappz added a commit that referenced this pull request Feb 23, 2023
In case if the wgctrl.New() return with err, should not close the
resource.
pulsastrix pushed a commit to pulsastrix/netbird that referenced this pull request Dec 24, 2023
In case if the wgctrl.New() return with err, should not close the
resource.
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