aboutsummaryrefslogtreecommitdiffstats
path: root/main/quagga-nhrp/bgpd-route-selection-crash.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-07-03 10:24:54 +0000
committerTimo Teräs <timo.teras@iki.fi>2015-07-03 10:28:18 +0000
commit04c6cba2e48b378679f8316fdd9dd895cede4bc9 (patch)
tree1835844121500be47c932af04ea5961ae7082b14 /main/quagga-nhrp/bgpd-route-selection-crash.patch
parent33c3a706bad78049366a3148bc2ffc950ac24172 (diff)
downloadaports-04c6cba2e48b378679f8316fdd9dd895cede4bc9.tar.bz2
aports-04c6cba2e48b378679f8316fdd9dd895cede4bc9.tar.xz
main/quagga-nhrp: moved from testing
and update patches from main/quagga
Diffstat (limited to 'main/quagga-nhrp/bgpd-route-selection-crash.patch')
-rw-r--r--main/quagga-nhrp/bgpd-route-selection-crash.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/main/quagga-nhrp/bgpd-route-selection-crash.patch b/main/quagga-nhrp/bgpd-route-selection-crash.patch
new file mode 100644
index 0000000000..473e4e564b
--- /dev/null
+++ b/main/quagga-nhrp/bgpd-route-selection-crash.patch
@@ -0,0 +1,16 @@
+diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
+index 34ba1ab..7ade22f 100644
+--- a/bgpd/bgp_route.c
++++ b/bgpd/bgp_route.c
+@@ -553,6 +553,11 @@ bgp_info_cmp (struct bgp *bgp, struct bgp_info *new, struct bgp_info *exist,
+ return 0;
+
+ /* 13. Neighbor address comparision. */
++ if (new->peer->su_remote == NULL)
++ return 0;
++ if (exist->peer->su_remote == NULL)
++ return 1;
++
+ ret = sockunion_cmp (new->peer->su_remote, exist->peer->su_remote);
+
+ if (ret == 1)