summaryrefslogtreecommitdiffstats
path: root/bfdd/bfd_packet.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_packet.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 '')
-rw-r--r--bfdd/bfd_packet.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bfdd/bfd_packet.c b/bfdd/bfd_packet.c
index 7fbe6db16..ed36bb742 100644
--- a/bfdd/bfd_packet.c
+++ b/bfdd/bfd_packet.c
@@ -529,8 +529,7 @@ int bfd_recv_cb(struct thread *t)
uint8_t msgbuf[1516];
struct bfd_vrf_global *bvrf = THREAD_ARG(t);
- if (bvrf)
- vrfid = bvrf->vrf->vrf_id;
+ vrfid = bvrf->vrf->vrf_id;
/* Schedule next read. */
bfd_sd_reschedule(bvrf, sd);