[git] GnuPG - branch, master, updated. gnupg-2.1.21-94-g956da89
by Justus Winter
cvs at cvs.gnupg.org
Fri Jul 14 11:21:27 CEST 2017
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, master has been updated
via 956da89193370d5aa970cff5b77f605534481a02 (commit)
from 330212efb927c119bb5135856f8582c0e4e2e6b7 (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 956da89193370d5aa970cff5b77f605534481a02
Author: Justus Winter <justus at g10code.com>
Date: Fri Jul 14 11:17:49 2017 +0200
gpg: Fix importing keys.
* g10/import.c (import_one): Fix error handling.
Fixes-commit: 330212efb927c119bb5135856f8582c0e4e2e6b7
Signed-off-by: Justus Winter <justus at g10code.com>
diff --git a/g10/import.c b/g10/import.c
index 8010fa5..1737479 100644
--- a/g10/import.c
+++ b/g10/import.c
@@ -1627,9 +1627,12 @@ import_one (ctrl_t ctrl,
if ( !(options & IMPORT_RESTORE) )
{
rc = apply_meta_data (keyblock, 0, origin);
- log_error ("apply_meta_data failed: %s\n", gpg_strerror (rc));
- keydb_release (hd);
- return GPG_ERR_GENERAL;
+ if (rc)
+ {
+ log_error ("apply_meta_data failed: %s\n", gpg_strerror (rc));
+ keydb_release (hd);
+ return GPG_ERR_GENERAL;
+ }
}
rc = keydb_insert_keyblock (hd, keyblock );
-----------------------------------------------------------------------
Summary of changes:
g10/import.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
hooks/post-receive
--
The GNU Privacy Guard
http://git.gnupg.org
More information about the Gnupg-commits
mailing list