[git] GCRYPT - branch, master, updated. libgcrypt-1.6.0-266-g1c6d269

by NIIBE Yutaka cvs at cvs.gnupg.org
Thu Oct 15 04:30:24 CEST 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 crypto library".

The branch, master has been updated
       via  1c6d2698a84e4bf82735287c1d64954bfc1a1982 (commit)
      from  813565a07ca575c87e1252c6ed26018653ecd338 (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 1c6d2698a84e4bf82735287c1d64954bfc1a1982
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Thu Oct 15 11:28:54 2015 +0900

    Fix double free on error.
    * src/hmac256.c (_gcry_hmac256_finalize): Don't free HD.

diff --git a/src/hmac256.c b/src/hmac256.c
index 94a26da..6b62ed3 100644
--- a/src/hmac256.c
+++ b/src/hmac256.c
@@ -426,10 +426,8 @@ _gcry_hmac256_finalize (hmac256_context_t hd, size_t *r_dlen)
       tmphd = _gcry_hmac256_new (NULL, 0);
       if (!tmphd)
-        {
-          free (hd);
-          return NULL;
-        }
+	return NULL;
       _gcry_hmac256_update (tmphd, hd->opad, 64);
       _gcry_hmac256_update (tmphd, hd->buf, 32);
       finalize (tmphd);


Summary of changes:
 src/hmac256.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

The GNU crypto library

Gnupg-commits mailing list
Gnupg-commits at gnupg.org

More information about the Gcrypt-devel mailing list