diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-05-12 13:28:51 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-12 13:28:51 +0300 |
| commit | 601db492b8465f6ff37efcf9113be381db744182 (patch) | |
| tree | 38fa8bf1af220aa2a925fa6ba1fbe4d863d20d45 | |
| parent | 4d5a0ff3915d7f8cc3c418d510c05a78cf7ad568 (diff) | |
| parent | cabddbf5f65bb833cca72dce25e8684731422476 (diff) | |
Merge pull request #11176 from anlancs/fix/bgpd-remove-for-type2-prefix
bgpd: remove unncessary check for evpn
| -rw-r--r-- | bgpd/bgp_evpn_private.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bgpd/bgp_evpn_private.h b/bgpd/bgp_evpn_private.h index 763408782f..64fdc29704 100644 --- a/bgpd/bgp_evpn_private.h +++ b/bgpd/bgp_evpn_private.h @@ -450,8 +450,7 @@ static inline void build_evpn_type2_prefix(struct prefix_evpn *p, p->prefix.route_type = BGP_EVPN_MAC_IP_ROUTE; memcpy(&p->prefix.macip_addr.mac.octet, mac->octet, ETH_ALEN); p->prefix.macip_addr.ip.ipa_type = IPADDR_NONE; - if (ip) - memcpy(&p->prefix.macip_addr.ip, ip, sizeof(*ip)); + memcpy(&p->prefix.macip_addr.ip, ip, sizeof(*ip)); } static inline void |
