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

Matthijs Mekking matthijs at nlnetlabs.nl
Wed Aug 11 12:04:00 CEST 2010


Author: matthijs
Date: 2010-08-11 12:04:00 +0200 (Wed, 11 Aug 2010)
New Revision: 3731

Modified:
   trunk/OpenDNSSEC/signer/src/daemon/engine.c
Log:
exit immediately when facing config errors

Modified: trunk/OpenDNSSEC/signer/src/daemon/engine.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/daemon/engine.c	2010-08-11 09:27:23 UTC (rev 3730)
+++ trunk/OpenDNSSEC/signer/src/daemon/engine.c	2010-08-11 10:04:00 UTC (rev 3731)
@@ -742,6 +742,11 @@
     if (engine_check_config(engine->config) != 0) {
         se_log_error("cfgfile %s has errors", cfgfile?cfgfile:"(null)");
         engine->need_to_exit = 1;
+        xmlCleanupParser();
+        xmlCleanupThreads();
+        engine_cleanup(engine);
+        engine = NULL;
+        return;
     }
     if (info) {
         engine_config_print(stdout, engine->config);




More information about the Opendnssec-commits mailing list