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

Hotfix: race condition due to variable shadowing #224

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

niklastreml
Copy link
Contributor

Motivation

Fixes a crash where, due to a race condition, the err variable would be sometimes overridden to nil just after checking it to be err != nil :D. Two lines later, when we call err.Error(), we crash since we call the method on a nil pointer.

Changes

For additional information look at the commits.

Tests done

  • Unit tests succeeded
  • E2E tests succeeded

TODO

  • I've assigned this PR to myself
  • I've labeled this PR correctly

Signed-off-by: Niklas Treml <treml.niklas@gmail.com>
@niklastreml niklastreml added bug Something isn't working area/checks Issues/PRs related to Checks labels Nov 18, 2024
@niklastreml niklastreml self-assigned this Nov 18, 2024
@niklastreml niklastreml merged commit f79499f into main Nov 18, 2024
8 checks passed
@niklastreml niklastreml deleted the fix/traceroute-race-condition-crash branch November 18, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/checks Issues/PRs related to Checks bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants