mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-08 18:11:54 +00:00
Lists: fix a stupid sanitizer bug
This commit is contained in:
parent
07c67f2ef9
commit
72e97dc983
@ -167,8 +167,12 @@ LIST_INLINE void
|
||||
replace_node(node *old, node *new)
|
||||
{
|
||||
EXPENSIVE_CHECK(check_list(NULL, old));
|
||||
ASSUME(new->prev == NULL);
|
||||
ASSUME(new->next == NULL);
|
||||
|
||||
if (old != new)
|
||||
{
|
||||
ASSUME(new->prev == NULL);
|
||||
ASSUME(new->next == NULL);
|
||||
}
|
||||
|
||||
old->next->prev = new;
|
||||
old->prev->next = new;
|
||||
|
Loading…
Reference in New Issue
Block a user