blob: 3f1797395e97b5a40fe3c5d2990c0d5792e635c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 34ba1ab..ad8642e 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -348,9 +348,9 @@ bgp_info_cmp (struct bgp *bgp, struct bgp_info *new, struct bgp_info *exist,
*paths_eq = 0;
/* 0. Null check. */
- if (new == NULL)
+ if (new == NULL || new->peer->su_remote == NULL)
return 0;
- if (exist == NULL)
+ if (exist == NULL || exist->peer->su_remote == NULL)
return 1;
newattr = new->attr;
|