summaryrefslogtreecommitdiffstats
path: root/bfdd/bfd.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-10-26 02:26:29 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-10-26 02:26:29 +0200
commit102e21573717be50813e5a51a9f5f4220e2d7c94 (patch)
tree2d369a33dde7182ebf0b4bbc0d13c10ac041aea5 /bfdd/bfd.c
parentMerge pull request #5216 from ton31337/fix/override_peers_ttl_if_peer_group_c... (diff)
downloadfrr-102e21573717be50813e5a51a9f5f4220e2d7c94.tar.xz
frr-102e21573717be50813e5a51a9f5f4220e2d7c94.zip
bfdd: VRF and Coverity
Fixup a couple of Coverity issues surrounding pointers Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bfdd/bfd.c')
-rw-r--r--bfdd/bfd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfdd/bfd.c b/bfdd/bfd.c
index 90287114f..d2b60100e 100644
--- a/bfdd/bfd.c
+++ b/bfdd/bfd.c
@@ -159,6 +159,7 @@ int bfd_session_enable(struct bfd_session *bs)
bs->vrf = vrf;
if (bs->vrf == NULL)
bs->vrf = vrf_lookup_by_id(VRF_DEFAULT);
+ assert(bs->vrf);
if (bs->key.ifname[0]
&& BFD_CHECK_FLAG(bs->flags, BFD_SESS_FLAG_MH) == 0)