[git] GCRYPT - branch, LIBGCRYPT-1-6-BRANCH, updated. libgcrypt-1.6.2-3-gd4b8678

by Werner Koch cvs at cvs.gnupg.org
Tue Sep 30 12:41:41 CEST 2014


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, LIBGCRYPT-1-6-BRANCH has been updated
       via  d4b86782debb93773ed1ccb9f8c1a230ff6e84f8 (commit)
      from  e189934b7e240e405421fcabfe4b0b68ca7a8350 (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 d4b86782debb93773ed1ccb9f8c1a230ff6e84f8
Author: Werner Koch <wk at gnupg.org>
Date:   Mon Sep 29 17:34:28 2014 +0200

    mac: Fix gcry_mac_close to allow for a NULL handle.
    
    * cipher/mac.c (_gcry_mac_close): Check for NULL.
    --
    
    We always allow this for easier cleanup.  actually the docs already
    tell that this is allowed.

diff --git a/cipher/mac.c b/cipher/mac.c
index fa36c7d..d87ac13 100644
--- a/cipher/mac.c
+++ b/cipher/mac.c
@@ -330,7 +330,8 @@ _gcry_mac_open (gcry_mac_hd_t * h, int algo, unsigned int flags,
 void
 _gcry_mac_close (gcry_mac_hd_t hd)
 {
-  mac_close (hd);
+  if (hd)
+    mac_close (hd);
 }
 
 

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

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


hooks/post-receive
-- 
The GNU crypto library
http://git.gnupg.org




More information about the Gnupg-commits mailing list