summaryrefslogtreecommitdiff
path: root/content/llcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/llcache.c')
-rw-r--r--content/llcache.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/content/llcache.c b/content/llcache.c
index 0b45c3e31..21dcd9f38 100644
--- a/content/llcache.c
+++ b/content/llcache.c
@@ -1193,11 +1193,11 @@ nserror llcache_object_remove_user(llcache_object *object,
if (user->next != NULL)
user->next->prev = user->prev;
-
-#ifndef NDEBUG
- user->next = user->prev = NULL;
-#endif
-
+
+ /* Do not invalidate user's prev/next pointers here
+ * We rely on them remaining valid if it's currently
+ * the target of an iterator */
+
#ifdef LLCACHE_TRACE
LOG(("Removing user %p from %p", user, object));
#endif