]> git.proxmox.com Git - mirror_frr.git/commit - ospf6d/ospf6_asbr.c
ospf6d: ospfv3-show-cmds-instance-check-fix.patch
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 01:03:41 +0000 (18:03 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 01:03:41 +0000 (18:03 -0700)
commitb52a8a52c1bf7788f8ca7a130da95c6c07b066a1
treed8de4f7db0eda8a01633b9b7da9b4c69fa2e46d8
parenta1b11f9bfaa857c0b5d5b69e6db765b2c9c68305
ospf6d: ospfv3-show-cmds-instance-check-fix.patch

SYMPTOM:

If some of the ospfv3 commands like 'show ipv6 ospf6 route' are executed
with ospf6d daemon running but before having any ospfv3 configuration, then
ospf6d crash is seen.

ISSUE:

There are a few show commands, which are (unlike others) not checking if
ospf6 instance is initialized already.

FIX:

Add the missing checks, by using OSPF6_CMD_CHECK_RUNNING() in the commands
where its needed and not yet used.

Signed-off-by: Vipin Kumar <vipin@cumulusnetworks.com>
Reviewed-by: Pradosh Mohapatra <pmohapat@cumulusnetworks.com>
             Dinesh Dutt <ddutt@cumulusnetworks.com>
ospf6d/ospf6_area.c
ospf6d/ospf6_asbr.c
ospf6d/ospf6_top.c
ospf6d/ospf6d.c