mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* keygen.c (write_keyblock): Don't try and build deleted kbnodes since
we start our tree with one.
This commit is contained in:
parent
5ce7563171
commit
a4563ecd19
2 changed files with 14 additions and 8 deletions
18
g10/keygen.c
18
g10/keygen.c
|
@ -3222,15 +3222,21 @@ generate_card_subkeypair (KBNODE pub_keyblock, KBNODE sec_keyblock,
|
|||
static int
|
||||
write_keyblock( IOBUF out, KBNODE node )
|
||||
{
|
||||
for( ; node ; node = node->next ) {
|
||||
int rc = build_packet( out, node->pkt );
|
||||
if( rc ) {
|
||||
log_error("build_packet(%d) failed: %s\n",
|
||||
for( ; node ; node = node->next )
|
||||
{
|
||||
if(!is_deleted_kbnode(node))
|
||||
{
|
||||
int rc = build_packet( out, node->pkt );
|
||||
if( rc )
|
||||
{
|
||||
log_error("build_packet(%d) failed: %s\n",
|
||||
node->pkt->pkttype, g10_errstr(rc) );
|
||||
return G10ERR_WRITE_FILE;
|
||||
return G10ERR_WRITE_FILE;
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue