Dump all the stripped keys at the end, rather than one at a time
[onak.git] / stripkey.c
index 414c1633c939be58677370755098faa7d7d5110b..13aeb1d23b3d22014f855109db34495805edb189 100644 (file)
@@ -83,8 +83,8 @@ int main(int argc, char** argv) {
         }
       }
     }
-    flatten_publickey( key, &packets, &list_end );
   }
+  flatten_publickey( keys, &packets, &list_end );
   write_openpgp_stream( stdout_putchar, NULL, packets );
   return 0;
 }