From: Kevin P. Fleming Date: Mon, 30 Oct 2006 21:46:07 +0000 (+0000) Subject: ensure that items removed from a list are always unlinked from the list (next pointer... X-Git-Tag: 1.4.0-beta4~241 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c874ff482b01a67fbbb3076c6c9c9475b01c899f;p=thirdparty%2Fasterisk.git ensure that items removed from a list are always unlinked from the list (next pointer set to NULL) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46511 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/linkedlists.h b/include/asterisk/linkedlists.h index 3264b9e1a1..865fafe726 100644 --- a/include/asterisk/linkedlists.h +++ b/include/asterisk/linkedlists.h @@ -354,6 +354,7 @@ struct { \ 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; \