]> git.puffer.fish Git - matthieu/frr.git/commit
tests/bgpd: initialized candidate_config to vtysh
authorChirag Shah <chirag@nvidia.com>
Tue, 18 Aug 2020 18:55:51 +0000 (11:55 -0700)
committerChirag Shah <chirag@nvidia.com>
Sat, 3 Oct 2020 18:25:37 +0000 (11:25 -0700)
commit64fb3f86661c0f5ac2f9017a7b6b999dbcb8e2e4
tree6679d8e17fe487069b3116ef5ca9f28718ef0114
parent374069da83f5f00f53156e1886372391c3f00b3f
tests/bgpd: initialized candidate_config to vtysh

In test_peer_attr.c test is initializd with vty handler
but candiate_config is not set.

northbound converted bgp cli expects to derefence the
candidate_config field which leads to crash.

(gdb) p *test->vty->candidate_config
$9 = {dnode = 0x0, version = 0}

Signed-off-by: Chirag Shah <chirag@nvidia.com>
tests/bgpd/test_peer_attr.c