[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r3797 - trunk/OpenDNSSEC/signer/src/daemon

Matthijs Mekking matthijs at nlnetlabs.nl
Thu Aug 26 13:39:21 CEST 2010


Author: matthijs
Date: 2010-08-26 13:39:21 +0200 (Thu, 26 Aug 2010)
New Revision: 3797

Modified:
   trunk/OpenDNSSEC/signer/src/daemon/engine.c
Log:
hsm open after log init

Modified: trunk/OpenDNSSEC/signer/src/daemon/engine.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/daemon/engine.c	2010-08-26 11:38:11 UTC (rev 3796)
+++ trunk/OpenDNSSEC/signer/src/daemon/engine.c	2010-08-26 11:39:21 UTC (rev 3797)
@@ -744,17 +744,17 @@
         engine_config_print(stdout, engine->config);
         goto earlyexit;
     }
+
+    /* open log */
+    se_log_init(engine->config->log_filename, engine->config->use_syslog,
+       engine->config->verbosity);
+
     /* set up hsm */
     result = hsm_open(engine->config->cfg_filename, hsm_prompt_pin, NULL); /* LEAKS */
     if (result != HSM_OK) {
         se_log_error("Error initializing libhsm (errno %i)", result);
         goto earlyexit;
     }
-
-    /* open log */
-    se_log_init(engine->config->log_filename, engine->config->use_syslog,
-       engine->config->verbosity);
-
     /* setup */
     tzset(); /* for portability */
     if (engine_setup(engine) != 0) {




More information about the Opendnssec-commits mailing list