From 5490f4e1f34f2c76d80e2eed04c2a0de192ae314 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 31 Jan 2014 13:21:05 +0100 Subject: maildir_store_get_folder_sync: Fix a use-after-free issue --- camel/providers/local/camel-maildir-store.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camel/providers/local/camel-maildir-store.c b/camel/providers/local/camel-maildir-store.c index 9aa6a34d3..665b64c43 100644 --- a/camel/providers/local/camel-maildir-store.c +++ b/camel/providers/local/camel-maildir-store.c @@ -207,7 +207,7 @@ maildir_store_get_folder_sync (CamelStore *store, /* Chain up to parent's get_folder() method. */ store_class = CAMEL_STORE_CLASS (camel_maildir_store_parent_class); - if (!store_class->get_folder_sync (store, dir_name, flags, cancellable, error)) { + if (!store_class->get_folder_sync (store, name, flags, cancellable, error)) { g_free (name); return NULL; } -- cgit v1.2.1