Skip to content

Commit d6a93d4

Browse files
authored
handle null *route (#732)
1 parent 8bb50d5 commit d6a93d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/controllers/routing/network_routes_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,8 @@ func (nrc *NetworkRoutingController) injectRoute(path *table.Path) error {
495495
Gw: nexthop,
496496
Protocol: 0x11,
497497
}
498+
} else {
499+
return nil
498500
}
499501

500502
if path.IsWithdraw {

0 commit comments

Comments
 (0)