proper library initialization for dumm
authorMartin Willi <martin@strongswan.org>
Mon, 21 Apr 2008 13:21:21 +0000 (13:21 -0000)
committerMartin Willi <martin@strongswan.org>
Mon, 21 Apr 2008 13:21:21 +0000 (13:21 -0000)
src/dumm/main.c

index d6e142e..b996021 100644 (file)
@@ -555,6 +555,8 @@ int main(int argc, char *argv[])
 {
        struct sigaction action;
        char *dir = ".";
+       
+       library_init(STRONGSWAN_CONF);
 
        while (TRUE)
        {
@@ -626,6 +628,8 @@ int main(int argc, char *argv[])
        }
        dumm->load_template(dumm, NULL);
        dumm->destroy(dumm);
+       
+       library_deinit();
        clear_history();
        return 0;
 }