[git] GnuPG - branch, STABLE-BRANCH-2-0, updated. gnupg-2.0.29-18-gb508af2

by NIIBE Yutaka cvs at cvs.gnupg.org
Tue Dec 15 04:45:40 CET 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".

The branch, STABLE-BRANCH-2-0 has been updated
       via  b508af2b2c40a715ef5ead4455b466954c2943ee (commit)
      from  8729f35510550495c830fcf54f03da9a42d0a751 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b508af2b2c40a715ef5ead4455b466954c2943ee
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Tue Dec 15 12:38:25 2015 +0900

    sm: Handle gcry_pk_encrypt return value.
    
    * sm/encrypt.c (encrypt_dek): Don't ignore failure of gcry_pk_encrypt.
    
    --
    
    Thanks to Sami Farin.
    
    GnuPG-bug-id: 2154
    
    (backport commit of 4ee881bff4c8fdfa4b3b7a4b7afab611471e97f1)

diff --git a/sm/encrypt.c b/sm/encrypt.c
index 42a438a..ab74fa2 100644
--- a/sm/encrypt.c
+++ b/sm/encrypt.c
@@ -208,8 +208,11 @@ encrypt_dek (const DEK dek, ksba_cert_t cert, unsigned char **encval)
   gcry_sexp_release (s_pkey);
   
   /* Reformat it. */
-  rc = make_canon_sexp (s_ciph, encval, NULL);
-  gcry_sexp_release (s_ciph);
+  if (!rc)
+    {
+      rc = make_canon_sexp (s_ciph, encval, NULL);
+      gcry_sexp_release (s_ciph);
+    }
   return rc;
 }
 

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

Summary of changes:
 sm/encrypt.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list