diff options
author | Mark Stapp <mjs@voltanet.io> | 2021-03-01 14:46:29 +0100 |
---|---|---|
committer | Mark Stapp <mjs@voltanet.io> | 2021-03-01 14:46:29 +0100 |
commit | d934e491ca3f32566dcae5e41c3500b297f76ef8 (patch) | |
tree | 3a103b96abf0a6172635a92ee478da54ca94057a /pimd | |
parent | Merge pull request #8073 from idryzhov/vtysh-show-config (diff) | |
download | frr-d934e491ca3f32566dcae5e41c3500b297f76ef8.tar.xz frr-d934e491ca3f32566dcae5e41c3500b297f76ef8.zip |
bgpd, pimd: fix coverity SA warnings
Fix a couple of coverity warnings in pim and bgp.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'pimd')
-rw-r--r-- | pimd/pim_nb_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_nb_config.c b/pimd/pim_nb_config.c index 11cfe0996..5963a651d 100644 --- a/pimd/pim_nb_config.c +++ b/pimd/pim_nb_config.c @@ -2411,7 +2411,7 @@ int lib_interface_pim_address_family_mroute_oif_modify( } #ifdef PIM_ENFORCE_LOOPFREE_MFC - if (iif->ifindex == oif->ifindex) { + if (oif && iif && (iif->ifindex == oif->ifindex)) { strlcpy(args->errmsg, "% IIF same as OIF and loopfree enforcement is enabled; rejecting", args->errmsg_len); |