diff options
Diffstat (limited to 'contrib/bind9/lib/bind/include/isc/list.h')
-rw-r--r-- | contrib/bind9/lib/bind/include/isc/list.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/bind9/lib/bind/include/isc/list.h b/contrib/bind9/lib/bind/include/isc/list.h index ad574ac..4e27eb1 100644 --- a/contrib/bind9/lib/bind/include/isc/list.h +++ b/contrib/bind9/lib/bind/include/isc/list.h @@ -66,12 +66,16 @@ INSIST(LINKED(elt, link));\ if ((elt)->link.next != NULL) \ (elt)->link.next->link.prev = (elt)->link.prev; \ - else \ + else { \ + INSIST((list).tail == (elt)); \ (list).tail = (elt)->link.prev; \ + } \ if ((elt)->link.prev != NULL) \ (elt)->link.prev->link.next = (elt)->link.next; \ - else \ + else { \ + INSIST((list).head == (elt)); \ (list).head = (elt)->link.next; \ + } \ INIT_LINK_TYPE(elt, link, type); \ } while (0) #define UNLINK(list, elt, link) \ |