X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=add.c;h=46f5ecf1e926a1553e06320b15acc4b9e40ab65e;hb=fd58db2034c6781399583384055ce69fc300b26b;hp=189444e294fb2d83af8869b3c943504c30fba810;hpb=ad30ce51bf609c35cd99a9ca46dd859b17d8164a;p=onak.git diff --git a/add.c b/add.c index 189444e..46f5ecf 100644 --- a/add.c +++ b/add.c @@ -78,14 +78,15 @@ int main(int argc, char *argv[]) logthing(LOGTHING_INFO, "%d keys cleaned.", count); - count = update_keys(&keys); + count = update_keys(&keys, true); logthing(LOGTHING_NOTICE, "Got %d new keys.", count); + if (keys != NULL) { - sendkeysync(keys); free_publickey(keys); keys = NULL; } + cleanupdb(); } else { puts("No OpenPGP packets found in input.");