mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Partially revert previous commit. DeleteLink() does not deletes permanent
links so we should be aware of it and try to delete every link only once or we will loop forever.
This commit is contained in:
parent
5cfa90e902
commit
48ca67bea6
1 changed files with 5 additions and 1 deletions
|
|
@ -819,8 +819,12 @@ CleanupAliasData(struct libalias *la)
|
|||
|
||||
LIBALIAS_LOCK_ASSERT(la);
|
||||
for (i = 0; i < LINK_TABLE_OUT_SIZE; i++) {
|
||||
while ((lnk = LIST_FIRST(&la->linkTableOut[i])) != NULL)
|
||||
lnk = LIST_FIRST(&la->linkTableOut[i]);
|
||||
while (lnk != NULL) {
|
||||
struct alias_link *link_next = LIST_NEXT(lnk, list_out);
|
||||
DeleteLink(lnk);
|
||||
lnk = link_next;
|
||||
}
|
||||
}
|
||||
|
||||
la->cleanupIndex = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue