summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/include/dlinklist.h1
1 files changed, 1 insertions, 0 deletions
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)