dovecot-2.0-sslstream: DLLIST_REMOVE(): Set removed item's prev/...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Feb 13 02:56:03 EET 2010
details: http://hg.dovecot.org/dovecot-2.0-sslstream/rev/16d40abb75b8
changeset: 10262:16d40abb75b8
user: Timo Sirainen <tss at iki.fi>
date: Thu Nov 05 19:47:18 2009 -0500
description:
DLLIST_REMOVE(): Set removed item's prev/next pointers to NULL.
diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
src/lib/llist.h | 5 ++++-
diffs (16 lines):
diff -r 32d007b5f41d -r 16d40abb75b8 src/lib/llist.h
--- a/src/lib/llist.h Thu Nov 05 18:39:36 2009 -0500
+++ b/src/lib/llist.h Thu Nov 05 19:47:18 2009 -0500
@@ -14,8 +14,11 @@
*(list) = (item)->next; \
else \
(item)->prev->next = (item)->next; \
- if ((item)->next != NULL) \
+ if ((item)->next != NULL) { \
(item)->next->prev = (item)->prev; \
+ (item)->next = NULL; \
+ } \
+ (item)->prev = NULL; \
} STMT_END
#endif
More information about the dovecot-cvs
mailing list