aboutsummaryrefslogtreecommitdiffstats
path: root/security/gnupg1/files/patch-keygen.c
blob: 2024ed3f567c3cb775ec02c76026770901eba464 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- g10/keygen.c.orig   Tue Jun 21 21:22:17 2005
+++ g10/keygen.c    Fri Dec 16 11:03:19 2005
@@ -3244,11 +3244,13 @@
 write_keyblock( IOBUF out, KBNODE node )
 {
     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 0;