mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 04:47:05 +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)
|
if (master == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
while ((plist = plist_pop(&master->str)))
|
while ((plist = plist_first(&master->str))) {
|
||||||
prefix_list_delete(plist);
|
prefix_list_delete(plist);
|
||||||
|
plist_pop(&master->str);
|
||||||
|
}
|
||||||
|
|
||||||
master->recent = NULL;
|
master->recent = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user