]> git.ipfire.org Git - thirdparty/bird.git/commit
BGP: Fix role check when no capability option is present
authorOndrej Zajicek <santiago@crfreenet.org>
Thu, 18 May 2023 23:02:57 +0000 (01:02 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Thu, 18 May 2023 23:02:57 +0000 (01:02 +0200)
commitf8ba82804faba5cc1520d4545330502e29b9e920
treea18c0c2309eaf4236c4ad2baf6a3f10084bdc118
parentb0e97617d98ed02235de37b7e498d81f01330b50
BGP: Fix role check when no capability option is present

When an OPEN message without capability options was parsed, the remote
role field was not initialized with the proper (non-zero) default value,
so it was interpreted as if 'provider' was announced.

Thanks to Mikhail Grishin for the bugreport.
proto/bgp/packets.c