Skip to content

Commit

Permalink
p2p, p2p/enode: fix data races (ethereum#23434)
Browse files Browse the repository at this point in the history
In p2p/dial.go, conn.flags was accessed without using sync/atomic.
This race is fixed by removing the access.

In p2p/enode/iter_test.go, a similar race is resolved by writing the field atomically.

Co-authored-by: Felix Lange <fjl@twurst.com>
  • Loading branch information
2 people authored and nibty committed Apr 10, 2024
1 parent a8123e6 commit ef23056
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit ef23056

Please sign in to comment.