Merge pull request #10732 from anlancs/zebra-minor-move

zebra: Delay the usage of one variable
This commit is contained in:
Donatas Abraitis 2022-03-07 12:15:43 +02:00 committed by GitHub
commit 583ba572b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -344,10 +344,10 @@ int zebra_evpn_add_macip_for_intf(struct interface *ifp,
for (ALL_LIST_ELEMENTS(ifp->connected, cnode, cnnode, c)) {
struct ipaddr ip;
memset(&ip, 0, sizeof(struct ipaddr));
if (!CHECK_FLAG(c->conf, ZEBRA_IFC_REAL))
continue;
memset(&ip, 0, sizeof(struct ipaddr));
if (c->address->family == AF_INET) {
ip.ipa_type = IPADDR_V4;
memcpy(&(ip.ipaddr_v4), &(c->address->u.prefix4),