[Commits] [SCM] claws branch, master, updated. 3.15.0-97-g5fb879d

ticho at claws-mail.org ticho at claws-mail.org
Wed Jul 12 09:49:03 CEST 2017


The branch, master has been updated
       via  5fb879d20a048217c578c981233a7cbb702cf60a (commit)
      from  11980bc7a384136cc2d9aada20988bcd462b1ffc (commit)

Summary of changes:
 src/plugins/pgpcore/sgpgme.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 5fb879d20a048217c578c981233a7cbb702cf60a
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Wed Jul 12 09:47:45 2017 +0200

    Fix use of uninitialized value in sgpgme_has_secret_key().
    
    Fixes commit 11980bc7a.

diff --git a/src/plugins/pgpcore/sgpgme.c b/src/plugins/pgpcore/sgpgme.c
index 0579f42..4ae51b3 100644
--- a/src/plugins/pgpcore/sgpgme.c
+++ b/src/plugins/pgpcore/sgpgme.c
@@ -1098,9 +1098,10 @@ gboolean sgpgme_has_secret_key(void)
 	}
 check_again:
 	err = gpgme_op_keylist_start(ctx, NULL, TRUE);
-	if (!err)
+	if (!err) {
 		err = gpgme_op_keylist_next(ctx, &key);
-	gpgme_key_unref(key); /* We're not interested in the key itself. */
+		gpgme_key_unref(key); /* We're not interested in the key itself. */
+	}
 	gpgme_op_keylist_end(ctx);
 	if (gpg_err_code(err) == GPG_ERR_EOF) {
 		if (gpgme_get_protocol(ctx) != GPGME_PROTOCOL_CMS) {

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list