osrg / gobgp

BGP implemented in the Go Programming Language
https://osrg.github.io/gobgp/
Apache License 2.0
3.66k stars 699 forks source link

fix data race when getting capabilities from neighbor config #2799

Closed hardeker closed 6 months ago

hardeker commented 7 months ago

capabilitiesFromConfig was always taken under the read lock. However, when graceful restart is enabled for some families, this function writes to the neighbor config which creates a data race.

fujita commented 6 months ago

Thanks!