Skip to content

Commit efbb81b

Browse files
committed
automount: fix queue iteration
fix use-after-free bug caused by dereferencing l after g_list_remove. This change also fixes auto-mounting multiple volumes that were connected while the screensaver was active.
1 parent d9cf5c5 commit efbb81b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/automount/csd-automount-manager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ check_volume_queue (CsdAutomountManager *manager)
190190
g_list_remove (manager->priv->volume_queue, volume);
191191

192192
g_object_unref (volume);
193-
l = l->next;
193+
l = manager->priv->volume_queue;
194194
}
195195

196196
manager->priv->volume_queue = NULL;

0 commit comments

Comments
 (0)