summaryrefslogtreecommitdiff
path: root/bgpd/bgp_open.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2020-09-04 18:39:26 +0300
committerGitHub <noreply@github.com>2020-09-04 18:39:26 +0300
commit08194f561e2c8ffd092dd64795db699f83a9075c (patch)
treed46aca2e388129e8dc860e63ab67f06d0e2a61f6 /bgpd/bgp_open.c
parentf6af4aecf46fc0202712f35e5ff75b4cdf35fb25 (diff)
parent77b34214ea44d4f9203f6728cbe67f73555c4735 (diff)
Merge pull request #6589 from NaveenThanikachalam/gr_fixes
bgpd: GR fixes
Diffstat (limited to 'bgpd/bgp_open.c')
-rw-r--r--bgpd/bgp_open.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bgpd/bgp_open.c b/bgpd/bgp_open.c
index 732c8e6753..6cfcb9cc3d 100644
--- a/bgpd/bgp_open.c
+++ b/bgpd/bgp_open.c
@@ -1102,6 +1102,9 @@ int bgp_open_option_parse(struct peer *peer, uint8_t length, int *mp_capability)
zlog_debug("%s rcv OPEN w/ OPTION parameter len: %u",
peer->host, length);
+ /* Unset any previously received GR capability. */
+ UNSET_FLAG(peer->cap, PEER_CAP_RESTART_RCV);
+
while (stream_get_getp(s) < end) {
uint8_t opt_type;
uint8_t opt_length;