]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
dlinkDelete should probably clear the ->next and ->prev pointers
authorwessels <>
Thu, 15 Apr 1999 12:03:09 +0000 (12:03 +0000)
committerwessels <>
Thu, 15 Apr 1999 12:03:09 +0000 (12:03 +0000)
after removing from the list

src/tools.cc

index 3b300bf9e233765b8bd1d528d5ff6820328d22ea..676ec8e22e09b078c2edc10bf31d4584d127ed16 100644 (file)
@@ -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