[Commits] [SCM] claws branch, master, updated. 3.11.1-236-gde58cd7

charles at claws-mail.org charles at claws-mail.org
Sun Jul 19 04:05:58 CEST 2015


The branch, master has been updated
       via  de58cd700bf263047a62b861b2c13200ce4f51f0 (commit)
      from  7e1943d6b833a3de6771aa9076882b73c81356f3 (commit)

Summary of changes:
 src/plugins/managesieve/managesieve.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit de58cd700bf263047a62b861b2c13200ce4f51f0
Author: Charles Lehner <cel at celehner.com>
Date:   Sat Jul 18 21:58:03 2015 -0400

    managesieve: prevent session list corruption
    
    This fixes a crash on plugin unload with a connected session

diff --git a/src/plugins/managesieve/managesieve.c b/src/plugins/managesieve/managesieve.c
index 3fd4079..4e7508a 100644
--- a/src/plugins/managesieve/managesieve.c
+++ b/src/plugins/managesieve/managesieve.c
@@ -46,8 +46,9 @@ static void command_cb(SieveCommand *cmd, gpointer result);
 void sieve_sessions_close()
 {
 	if (sessions) {
-		g_slist_free_full(sessions, (GDestroyNotify)session_destroy);
+		GSList *list = sessions;
 		sessions = NULL;
+		g_slist_free_full(list, (GDestroyNotify)session_destroy);
 	}
 }
 

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list