[Commits] [SCM] claws branch, master, updated. 3.17.0-105-ga0ed7e3

ticho at claws-mail.org ticho at claws-mail.org
Mon Oct 8 13:30:23 CEST 2018


The branch, master has been updated
       via  a0ed7e3b9fa6312b18accef0c0ab5a084e3c2d8d (commit)
      from  1cfe78b4d78fa274e90598a2a8b48bc2ea724a16 (commit)

Summary of changes:
 src/passwordstore.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit a0ed7e3b9fa6312b18accef0c0ab5a084e3c2d8d
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Mon Oct 8 13:29:21 2018 +0200

    Added some NULL checks in passwordstore.c to avoid potential crash.

diff --git a/src/passwordstore.c b/src/passwordstore.c
index 4411711..cd56c1b 100644
--- a/src/passwordstore.c
+++ b/src/passwordstore.c
@@ -307,7 +307,7 @@ void passwd_store_reencrypt_all(const gchar *old_mpwd,
 		debug_print("Reencrypting passwords in block (%d/%s).\n",
 				block->block_type, block->block_name);
 
-		if (g_hash_table_size(block->entries) == 0)
+		if (block->entries == NULL || g_hash_table_size(block->entries) == 0)
 			continue;
 
 		keys = g_hash_table_get_keys(block->entries);

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list