]> 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)
committerMaria Matejka <mq@ucw.cz>
Thu, 22 Jun 2023 14:12:17 +0000 (16:12 +0200)
commitac7341a18146bf0f0b2c60477c4292a9cd428a87
treed7c8344b5b2a720c2c031acaf369421a090ea1c9
parentca0f239c72486cebfe171e335e3b8a86f5999714
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