1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-02-21 19:48:05 +01:00

* keygen.c (start_tree): Need to use an actual packet type (which we

can then delete) to start the tree.
This commit is contained in:
David Shaw 2005-08-04 20:48:13 +00:00
parent c058bd6632
commit bf4728992f
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-08-04 David Shaw <dshaw@jabberwocky.com>
* keygen.c (start_tree): Need to use an actual packet type (which
we can then delete) to start the tree.
2005-08-04 Werner Koch <wk@g10code.com>
* export.c (do_export_stream): Skip on-card keys when only subkeys

View File

@ -2667,7 +2667,14 @@ start_tree(KBNODE *tree)
PACKET *pkt;
pkt=xmalloc_clear(sizeof(*pkt));
pkt->pkttype=PKT_NONE;
/* We're not acually using a user ID here - this is just an
arbitrary choice. We delete it anyway. */
pkt->pkttype=PKT_USER_ID;
pkt->pkt.user_id=xmalloc_clear(sizeof *pkt->pkt.user_id);
pkt->pkt.user_id->ref=1;
*tree=new_kbnode(pkt);
delete_kbnode(*tree);
}