From 0628d5fdeb9b21aae9f9e6980fb24d76062abd91 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 6 Feb 2005 08:14:44 +0000 Subject: r5248: fixed a silly bug in DLIST_ADD_AFTER() (This used to be commit e36b6882fdd1bb331f297b3b82bc3621b8ba0586) --- source4/include/dlinklist.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/include') diff --git a/source4/include/dlinklist.h b/source4/include/dlinklist.h index fbc7b43652..04e507947d 100644 --- a/source4/include/dlinklist.h +++ b/source4/include/dlinklist.h @@ -81,5 +81,6 @@ do { \ p->prev = el; \ p->next = el->next; \ el->next = p; \ + if (p->next) p->next->prev = p; \ }\ } while (0) -- cgit