[Commits] [SCM] claws branch, master, updated. 3.15.0-29-gda97dac

mones at claws-mail.org mones at claws-mail.org
Tue Apr 18 12:13:44 CEST 2017


The branch, master has been updated
       via  da97dac531e28bb8f607b02c14adfc738fb2b86d (commit)
      from  91fad9fcba15e7b5172c5e92c352567b165d40fe (commit)

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


- Log -----------------------------------------------------------------
commit da97dac531e28bb8f607b02c14adfc738fb2b86d
Author: Ricardo Mones <ricardo at mones.org>
Date:   Tue Apr 18 12:13:33 2017 +0200

    Fix use after free

diff --git a/src/imap.c b/src/imap.c
index eb810a3..0e1e777 100644
--- a/src/imap.c
+++ b/src/imap.c
@@ -1320,8 +1320,9 @@ try_again:
 		}
 
 		if (acc_pass != NULL) {
-			g_free(acc_pass);
 			memset(acc_pass, 0, strlen(acc_pass));
+			g_free(acc_pass);
+			acc_pass = NULL;
 		}
 
 		return ok;

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list