diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2022-04-05 09:38:42 -0400 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-05 09:38:42 -0400 | 
| commit | 95e6a352d849f4d81bdd719884611fe2593880f6 (patch) | |
| tree | dbfa2fa1e4e0b110f6b5f0ae2d44c4fc24465c33 /pimd/pim_vxlan.c | |
| parent | 977405eeac56176ca6c3f1c1b74f353c25ad7825 (diff) | |
| parent | 75a5ac751a9528682c5fe8518e0924b5d5f01424 (diff) | |
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.c | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/pimd/pim_vxlan.c b/pimd/pim_vxlan.c index 93fdb13a38..120293dbfd 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  | 
