]> the.earth.li Git - onak.git/blobdiff - gpgwww.c
cscvs to tla changeset 68
[onak.git] / gpgwww.c
index bb8a446cd4be840df0be7c8119ae56776478f3cc..f163ca4eb40e38e0d5ebc8e0590c49de74236af7 100644 (file)
--- a/gpgwww.c
+++ b/gpgwww.c
@@ -14,6 +14,7 @@
 #include "getcgi.h"
 #include "hash.h"
 #include "keydb.h"
+#include "log.h"
 #include "onak-conf.h"
 #include "stats.h"
 
@@ -55,15 +56,23 @@ int main(int argc, char *argv[])
 
        printf("<P>Looking for path from 0x%llX to 0x%llX</P>\n", from, to);
        readconfig();
+       initlogthing("gpgwww", config.logfile);
        initdb();
        inithash();
-       dofindpath(from, to, true);
+       dofindpath(from, to, true, 3);
        destroyhash();
        cleanupdb();
+       cleanuplogthing();
+       cleanupconfig();
 
        puts("<HR>");
-       puts("Produced by gpgwww " VERSION ", part of onak. <A HREF=\"mailto:noodles-onak@earth.li\">Jonathan McDowell</A>");
+       puts("Produced by gpgwww " VERSION ", part of onak. "
+               "<A HREF=\"mailto:noodles-onak@earth.li\">"
+               "Jonathan McDowell</A>");
        end_html();
 
+       cleanupcgi(cgiparams);
+       cgiparams = NULL;
+
        return EXIT_SUCCESS;
 }