diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-10-26 02:26:29 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-10-26 02:26:29 +0200 |
commit | 102e21573717be50813e5a51a9f5f4220e2d7c94 (patch) | |
tree | 2d369a33dde7182ebf0b4bbc0d13c10ac041aea5 /bfdd/bfd.c | |
parent | Merge pull request #5216 from ton31337/fix/override_peers_ttl_if_peer_group_c... (diff) | |
download | frr-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.c | 1 |
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) |