forked from Mirror/frr
bgpd: correctly store allocated ES struct
in the rare situation where we allocate the ES during the path link we fail to check/store the allocated ES pointer thus leading to a NULL dereference later in the function. Signed-off-by: Pat Ruddy <pat@voltanet.io>
This commit is contained in:
parent
ad88608a36
commit
f61fbf216b
|
@ -1422,7 +1422,7 @@ void bgp_evpn_path_es_link(struct bgp_path_info *pi, vni_t vni, esi_t *esi)
|
|||
/* find-create ES */
|
||||
es = bgp_evpn_es_find(esi);
|
||||
if (!es)
|
||||
bgp_evpn_es_new(bgp_evpn, esi);
|
||||
es = bgp_evpn_es_new(bgp_evpn, esi);
|
||||
|
||||
/* dup check */
|
||||
if (es_info->es == es)
|
||||
|
|
Loading…
Reference in a new issue