gnome-keyring/gnome-keyring-2.26.0-egg-endless-loop.patch

14 lines
442 B
Diff
Raw Normal View History

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 {