9662952340
would hang when re-allocating from a pool of secure memory.
14 lines
442 B
Diff
14 lines
442 B
Diff
diff --git a/egg/egg-secure-memory.c b/egg/egg-secure-memory.c
|
|
index a215364..ba0cf5c 100644
|
|
--- a/egg/egg-secure-memory.c
|
|
+++ b/egg/egg-secure-memory.c
|
|
@@ -341,7 +341,7 @@ sec_insert_cell_ring (Cell **ring, Cell *cell)
|
|
/* Insert back into the mix of available memory */
|
|
if (*ring) {
|
|
cell->next = (*ring)->next;
|
|
- cell->prev = (*ring)->prev;
|
|
+ cell->prev = *ring;
|
|
cell->next->prev = cell;
|
|
cell->prev->next = cell;
|
|
} else {
|