]> git.puffer.fish Git - matthieu/frr.git/commit
lib: Fix assert in node_parent()
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 17 Mar 2016 20:12:55 +0000 (16:12 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 17 Mar 2016 20:12:55 +0000 (16:12 -0400)
commit73d2dad0bd736b6bfd668a1de2a8f26baf2c5cdc
treefd729eb592114f8e30c6efc404ff297df87a0639
parentc5344534ff71e026b29c6905c9737e658efdd515
lib: Fix assert in node_parent()

With this sequence of commands in a conf file:
router bgp X
address-family ipv4
exit
address-family ipv6
exit

When the bgp AS # is currently configured as !X and the
'vtysh -b -f <conf file above>' command run, vtysh will
crash with an assert.

This commit fixes that issue.

Ticket: CM-9852
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
lib/command.c