From: wessels <> Date: Thu, 15 Apr 1999 12:03:09 +0000 (+0000) Subject: dlinkDelete should probably clear the ->next and ->prev pointers X-Git-Tag: SQUID_3_0_PRE1~2283 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=92b8c0953c723f3203807e3dd76d38edec3b15f5;p=thirdparty%2Fsquid.git dlinkDelete should probably clear the ->next and ->prev pointers after removing from the list --- diff --git a/src/tools.cc b/src/tools.cc index 3b300bf9e2..676ec8e22e 100644 --- a/src/tools.cc +++ b/src/tools.cc @@ -1,6 +1,6 @@ /* - * $Id: tools.cc,v 1.174 1999/04/07 19:59:21 wessels Exp $ + * $Id: tools.cc,v 1.175 1999/04/15 06:03:09 wessels Exp $ * * DEBUG: section 21 Misc Functions * AUTHOR: Harvest Derived @@ -790,6 +790,7 @@ dlinkDelete(dlink_node * m, dlink_list * list) list->head = m->next; if (m == list->tail) list->tail = m->prev; + m->next = m->prev = NULL; } void