diff options
author | Donald Sharp <donaldsharp72@gmail.com> | 2023-08-30 15:22:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-30 15:22:12 +0200 |
commit | 15a5de185c7ec5966b7505516c1625d9e8cd7ab5 (patch) | |
tree | 2c55f3e8a4cf364ca2fbeecde50197ba578a9306 /bgpd/bgp_packet.c | |
parent | Merge pull request #14284 from opensourcerouting/fix/bgp_dynamic_capability_zlog (diff) | |
parent | bgpd: Unset role when receiving UNSET action for dynamic capability (diff) | |
download | frr-15a5de185c7ec5966b7505516c1625d9e8cd7ab5.tar.xz frr-15a5de185c7ec5966b7505516c1625d9e8cd7ab5.zip |
Merge pull request #14300 from opensourcerouting/fix/set_role_as_undefined_when_capability_unset
bgpd: Unset role when receiving UNSET action for dynamic capability
Diffstat (limited to 'bgpd/bgp_packet.c')
-rw-r--r-- | bgpd/bgp_packet.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c index 8876c1df1..74291383d 100644 --- a/bgpd/bgp_packet.c +++ b/bgpd/bgp_packet.c @@ -2916,6 +2916,7 @@ static int bgp_capability_msg_parse(struct peer *peer, uint8_t *pnt, peer->remote_role = role; } else { UNSET_FLAG(peer->cap, PEER_CAP_ROLE_RCV); + peer->remote_role = ROLE_UNDEFINED; } break; default: |