summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Pentchev <roam@ringlet.net>2011-09-12 16:30:31 +0400
committerDenis Ovsienko <infrastation@yandex.ru>2011-10-08 20:17:21 +0400
commit21cc76941abc60b5b5ece0a71ace0b69d6f4572c (patch)
treea81b361e0771c7a3bcddebad35158edad00f219f
parenta624cae2b210a0e81c80c473f86b73e2be169962 (diff)
bgpd: fix parsing of graceful restart cap. (#663)
"While setting up a testbed, I ran across a little problem in the parsing of the "graceful restart" BGP capability that resulted in Quagga not actually activating it for the peer in question - when the peer sent a single AFI/SAFI block." * bgp_open.c * bgp_capability_restart(): actually process the last AFI/SAFI block
-rw-r--r--bgpd/bgp_open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_open.c b/bgpd/bgp_open.c
index 31b7369d..82deb3d0 100644
--- a/bgpd/bgp_open.c
+++ b/bgpd/bgp_open.c
@@ -380,7 +380,7 @@ bgp_capability_restart (struct peer *peer, struct capability_header *caphdr)
peer->v_gr_restart);
}
- while (stream_get_getp (s) + 4 < end)
+ while (stream_get_getp (s) + 4 <= end)
{
afi_t afi = stream_getw (s);
safi_t safi = stream_getc (s);