]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix crash when as/type mismatches in config
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 29 Apr 2021 13:31:15 +0000 (16:31 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Thu, 29 Apr 2021 13:50:29 +0000 (16:50 +0300)
commit0d6d0208a55c786513f472ad690bae1788e173fa
tree3ea04e6425faeb0a51e8cd531c99ef4450974161
parentd8c3daca19add1c3cedea05e9a30fb33f2b4e9ad
bgpd: fix crash when as/type mismatches in config

When we're trying to create the config for already existing router and
the AS number or instance type mismatches, we're returning the
inconsistency error and don't set the NB entry.

Any subsequent command that configures this router will crash because
every command relies on the existence of the NB entry.

Let's store the entry even when there's a mismatch to prevent the crash.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
bgpd/bgp_nb_config.c
bgpd/bgpd.c