Skip to content

Commit

Permalink
Merge pull request #267 from sebageek/check-for-nil-on-route-withdraw…
Browse files Browse the repository at this point in the history
…al-with-addpath

Fix crash on route withdrawal with addpath
  • Loading branch information
hikhvar authored May 11, 2020
2 parents 39a4731 + 1ceee51 commit ef48ec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routingtable/adjRIBIn/adj_rib_in.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func (a *AdjRIBIn) removePath(pfx *net.Prefix, p *route.Path) bool {
oldPaths := r.Paths()
for _, path := range oldPaths {
if a.addPathRX {
if path.BGPPath.PathIdentifier != p.BGPPath.PathIdentifier {
if p != nil && path.BGPPath.PathIdentifier != p.BGPPath.PathIdentifier {
continue
}
}
Expand Down

0 comments on commit ef48ec2

Please sign in to comment.