]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: Fix crash with usage of incorrect command
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 9 Sep 2016 16:41:35 +0000 (12:41 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 13 Sep 2016 18:12:41 +0000 (14:12 -0400)
commit87aea55d3436b8cfaf80334c4a498baaef1f0284
treef7e610ae2e83e48b3346f0d58f8877050a88a7ca
parentddb13fd374ee736c20198c1075c855efa7af74e9
ospfd: Fix crash with usage of incorrect command

Entering 'show ip ospf interface json' causes ospf
to crash.

Entering 'show ip ospf interface <intf> json' causes
ospf to crash if intf has no neighbors on the otherside

Modify the code to not crash in these cases.

Ticket: CM-12776
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
ospfd/ospf_vty.c