X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/082ed75922ea5dde7779e76db20991f595f0d541..fd58db2034c6781399583384055ce69fc300b26b:/add.c?ds=inline 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.");