1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

When calling DLIST_REMOVE(x,x) (from lib/interface.c) ensure that the pointer

is still valid before setting prev and next to null.
Jeremy.
This commit is contained in:
Jeremy Allison -
parent 80c18d8849
commit 0d2e9e4d32

View File

@ -47,7 +47,7 @@
if ((p)->prev) (p)->prev->next = (p)->next; \
if ((p)->next) (p)->next->prev = (p)->prev; \
} \
(p)->next = (p)->prev = NULL; \
if ((p)) (p)->next = (p)->prev = NULL; \
}
/* promote an element to the top of the list */