aboutsummaryrefslogtreecommitdiffstats
path: root/g10/import.c
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2015-10-29 09:18:13 +0000
committerNeal H. Walfield <[email protected]>2015-10-31 00:44:42 +0000
commit3ad5c815fddcd8403d5f9159a0fff3c84c066452 (patch)
treec0854476929442f9ad2639b5a2a036c641a2e3d0 /g10/import.c
parentgpg: Display the correct error message. (diff)
downloadgnupg-neal/next.tar.gz
gnupg-neal/next.zip
New key db.neal/next
Diffstat (limited to 'g10/import.c')
-rw-r--r--g10/import.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/g10/import.c b/g10/import.c
index 048b136c9..ee722ee3f 100644
--- a/g10/import.c
+++ b/g10/import.c
@@ -1154,6 +1154,9 @@ import_one (ctrl_t ctrl,
goto leave;
}
+ assert (strcmp (keystr_from_pk(keyblock_orig->pkt->pkt.public_key),
+ keystr_from_pk(pk)) == 0);
+
/* Make sure the original direct key sigs are all sane. */
n_sigs_cleaned = fix_bad_direct_key_sigs (keyblock_orig, keyid);
if (n_sigs_cleaned)