Dump all the stripped keys at the end, rather than one at a time
authorJonathan McDowell <noodles@earth.li>
Thu, 12 Jul 2012 18:24:01 +0000 (12:24 -0600)
committerJonathan McDowell <noodles@earth.li>
Thu, 12 Jul 2012 18:24:01 +0000 (12:24 -0600)
  We don't need to dump everything as we go, and will end up dumping
  more than we intend (as we'll dump all of the keys still to go).

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;
 }