]> git.proxmox.com Git - mirror_frr.git/commit - ospf6d/ospf6_top.c
ospf6d: Fix coverity Possible null deref
authorDonald Sharp <sharpd@nvidia.com>
Thu, 10 Jun 2021 11:46:36 +0000 (07:46 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 10 Jun 2021 11:46:36 +0000 (07:46 -0400)
commit0d882ec7a390f57ebf8cfc2adf10aa79f976b124
tree636ea616b5169df68094e2ab15ae2c6e6230aa05
parent8d6aca7f21b9045b3c9c4ee3ba79450d2eb7ddb9
ospf6d: Fix coverity Possible null deref

There exists a code path where ospf6 could be NULL and passing
to a function where it would always be derefed is a bad idea.

Put some small code in place to prevent this and allow this to be debuged
if it happens in the future.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
ospf6d/ospf6_top.c