Skip to content

Commit

Permalink
interfaces-plugin: update check if neigh was deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
feelqah committed Oct 11, 2022
1 parent 8758cdf commit 8406430
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interfaces/interfaces.c
Original file line number Diff line number Diff line change
Expand Up @@ -1378,7 +1378,7 @@ int add_interface_ipv4(link_data_t *ld, struct rtnl_link *old, struct rtnl_link
}

for (uint i = 0; i < neigh_ls->count; i++) {
if (neigh_ls->nbor[i].ip == NULL) { // neighbor was deleted
if (neigh_ls->nbor[i].ip == NULL || neigh_ls->nbor[i].phys_addr == NULL) { // neighbor was deleted
continue;
}
neigh = rtnl_neigh_alloc();
Expand Down Expand Up @@ -1577,7 +1577,7 @@ int add_interface_ipv6(link_data_t *ld, struct rtnl_link *old, struct rtnl_link
}

for (uint i = 0; i < neigh_ls->count; i++) {
if (neigh_ls->nbor[i].ip == NULL) { // neighbor was deleted
if (neigh_ls->nbor[i].ip == NULL || neigh_ls->nbor[i].phys_addr == NULL) { // neighbor was deleted
continue;
}
neigh = rtnl_neigh_alloc();
Expand Down

0 comments on commit 8406430

Please sign in to comment.