[asterisk-commits] kpfleming: branch 1.4 r46511 - /branches/1.4/include/asterisk/linkedlists.h

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Oct 30 14:46:07 MST 2006


Author: kpfleming
Date: Mon Oct 30 15:46:07 2006
New Revision: 46511

URL: http://svn.digium.com/view/asterisk?rev=46511&view=rev
Log:
ensure that items removed from a list are always unlinked from the list (next pointer set to NULL)

Modified:
    branches/1.4/include/asterisk/linkedlists.h

Modified: branches/1.4/include/asterisk/linkedlists.h
URL: http://svn.digium.com/view/asterisk/branches/1.4/include/asterisk/linkedlists.h?rev=46511&r1=46510&r2=46511&view=diff
==============================================================================
--- branches/1.4/include/asterisk/linkedlists.h (original)
+++ branches/1.4/include/asterisk/linkedlists.h Mon Oct 30 15:46:07 2006
@@ -354,6 +354,7 @@
   previous entry, if any).
  */
 #define AST_LIST_REMOVE_CURRENT(head, field)						\
+	__new_prev->field.next = NULL;							\
 	__new_prev = __list_prev;							\
 	if (__list_prev)								\
 		__list_prev->field.next = __list_next;					\



More information about the asterisk-commits mailing list