mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 21:10:28 +00:00
Merge pull request #11055 from donaldsharp/plist_crash
lib: Prevent crash after shutdown request
This commit is contained in:
commit
65b9c34d4b
@ -1568,8 +1568,10 @@ static void prefix_list_reset_afi(afi_t afi, int orf)
|
||||
if (master == NULL)
|
||||
return;
|
||||
|
||||
while ((plist = plist_pop(&master->str)))
|
||||
while ((plist = plist_first(&master->str))) {
|
||||
prefix_list_delete(plist);
|
||||
plist_pop(&master->str);
|
||||
}
|
||||
|
||||
master->recent = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user