mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-30 16:17:02 +01:00
gpg: Fix importing keys.
* g10/import.c (import_one): Fix error handling. Fixes-commit: 330212efb927c119bb5135856f8582c0e4e2e6b7 Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
330212efb9
commit
956da89193
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user