-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
northd: Fix segfault when changing the router to a gateway router.
When a distributed router with a gateway router port is changed to a gateway router (options:chassis=<ch>), during the recompute run, op->cr_port is not created and instead a warning is logged because of bad configuration. The commit b52ba50 is accessing op->cr_port even though cr_port is not created for the 'op' and this results in a segfault. This patch fixes it. Fixes: b52ba50 ("northd: Fix relying on naming coincidences.") Signed-off-by: Numan Siddique <[email protected]> Signed-off-by: Dumitru Ceara <[email protected]>
- Loading branch information
1 parent
9198808
commit 8e138ec
Showing
2 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters