summaryrefslogtreecommitdiffstats
path: root/g10/export.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2017-01-17 10:26:34 +0100
committerWerner Koch <wk@gnupg.org>2017-01-17 10:26:34 +0100
commit356323768a1a29138581d0aceed0336ab8be0d5c (patch)
tree1b786bd86924ea36450a37395cfc2665672139d8 /g10/export.c
parentgpg: Sync print of additional sig data in --edit-key. (diff)
downloadgnupg2-356323768a1a29138581d0aceed0336ab8be0d5c.tar.xz
gnupg2-356323768a1a29138581d0aceed0336ab8be0d5c.zip
gpg: Clean bogus subkey binding when cleaning a key.
* g10/trust.c (clean_key): Also clean bogus subkey bindings. -- GnuPG-bug-id: 2922 Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/export.c')
-rw-r--r--g10/export.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/export.c b/g10/export.c
index ad42b41b5..b36200ac0 100644
--- a/g10/export.c
+++ b/g10/export.c
@@ -1518,6 +1518,7 @@ do_export_one_keyblock (ctrl_t ctrl, kbnode_t keyblock, u32 *keyid,
u32 subkidbuf[2], *subkid;
kbnode_t kbctx, node;
+ /* NB: walk_kbnode skips packets marked as deleted. */
for (kbctx=NULL; (node = walk_kbnode (keyblock, &kbctx, 0)); )
{
if (skip_until_subkey)