diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-05-04 21:19:51 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-04 21:19:51 +0300 |
| commit | 50f1f2e724f8614ada1a1a02dd28f1ff3af06e08 (patch) | |
| tree | 8923363c95ef0fb10fd63fd549f580a834b3cca4 /zebra/zebra_fpm.c | |
| parent | d98de984a908579ac1cd0c1a67f32e8381757c55 (diff) | |
| parent | 8e3aae66cec563cee0add26482f279c4aae67cb1 (diff) | |
Merge pull request #11059 from anlancs/fix/bgpd-evnp-wrong-check-hashget
bgpd: fix memory leak for evpn
Diffstat (limited to 'zebra/zebra_fpm.c')
| -rw-r--r-- | zebra/zebra_fpm.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/zebra/zebra_fpm.c b/zebra/zebra_fpm.c index 6766c752ad..7c57dfac6a 100644 --- a/zebra/zebra_fpm.c +++ b/zebra/zebra_fpm.c @@ -1596,12 +1596,9 @@ static int zfpm_trigger_rmac_update(struct zebra_mac *rmac, UNSET_FLAG(fpm_mac->fpm_flags, ZEBRA_MAC_UPDATE_FPM); return 0; } - } else { + } else fpm_mac = hash_get(zfpm_g->fpm_mac_info_table, &key, zfpm_mac_info_alloc); - if (!fpm_mac) - return 0; - } fpm_mac->r_vtep_ip.s_addr = rmac->fwd_info.r_vtep_ip.s_addr; fpm_mac->zebra_flags = rmac->flags; |
