
|
crypt32(4/13): When removing contexts from a list, make sure the context no longer references the list
--Juan
[0004-When-removing-contexts-from-a-list-make-sure-the-co.patch] From 0024b25f7b4b807a813322b6aa30c9e381b8bede Mon Sep 17 00:00:00 2001
From: Juan Lang <juan.lang@...>
Date: Fri, 30 Oct 2009 16:43:24 -0700
Subject: [PATCH] When removing contexts from a list, make sure the context no longer references the list
---
dlls/crypt32/context.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/crypt32/context.c b/dlls/crypt32/context.c
index 9ada6bf..20fe024 100644
--- a/dlls/crypt32/context.c
+++ b/dlls/crypt32/context.c
@@ -289,6 +289,7 @@ void ContextList_Delete(struct ContextList *list, void *context)
EnterCriticalSection(&list->cs);
list_remove(entry);
LeaveCriticalSection(&list->cs);
+ list_init(entry);
list->contextInterface->free(context);
}
--
1.6.0.6
|