summaryrefslogtreecommitdiffstats
path: root/pimd/pim_vxlan.c
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2022-04-05 15:38:42 +0200
committerGitHub <noreply@github.com>2022-04-05 15:38:42 +0200
commit95e6a352d849f4d81bdd719884611fe2593880f6 (patch)
treedbfa2fa1e4e0b110f6b5f0ae2d44c4fc24465c33 /pimd/pim_vxlan.c
parentMerge pull request #10938 from anlancs/fix-zebra-vxlan-change-vrfid (diff)
parentpimd: fix pim_instance NULL deference in zclient_lookup_read_pipe (diff)
downloadfrr-95e6a352d849f4d81bdd719884611fe2593880f6.tar.xz
frr-95e6a352d849f4d81bdd719884611fe2593880f6.zip
Merge pull request #10959 from patrasar/pim_coverity
pimd: Fixing pim coverity issues
Diffstat (limited to 'pimd/pim_vxlan.c')
-rw-r--r--pimd/pim_vxlan.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pimd/pim_vxlan.c b/pimd/pim_vxlan.c
index 93fdb13a3..120293dbf 100644
--- a/pimd/pim_vxlan.c
+++ b/pimd/pim_vxlan.c
@@ -880,6 +880,12 @@ void pim_vxlan_mlag_update(bool enable, bool peer_state, uint32_t role,
*/
pim = pim_get_pim_instance(VRF_DEFAULT);
+ if (!pim) {
+ if (PIM_DEBUG_VXLAN)
+ zlog_debug("%s: Unable to find pim instance", __func__);
+ return;
+ }
+
if (enable)
vxlan_mlag.flags |= PIM_VXLAN_MLAGF_ENABLED;
else