[git] GCRYPT - branch, master, updated. libgcrypt-1.6.0-114-g51dae8c
by Werner Koch
cvs at cvs.gnupg.org
Tue Sep 30 12:40:02 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, master has been updated
via 51dae8c8c4b63bb5e1685cbd8722e35342524737 (commit)
from 8b960a807d168000d2690897a7634bd384ac1346 (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 51dae8c8c4b63bb5e1685cbd8722e35342524737
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 30117b9..e5131ed 100644
--- a/cipher/mac.c
+++ b/cipher/mac.c
@@ -336,7 +336,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
_______________________________________________
Gnupg-commits mailing list
Gnupg-commits at gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-commits
More information about the Gcrypt-devel
mailing list