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

Matthijs Mekking matthijs at nlnetlabs.nl
Tue Aug 31 10:10:17 CEST 2010


Author: matthijs
Date: 2010-08-31 10:10:17 +0200 (Tue, 31 Aug 2010)
New Revision: 3832

Modified:
   trunk/OpenDNSSEC/signer/src/scheduler/task.c
Log:
fix trunk

Modified: trunk/OpenDNSSEC/signer/src/scheduler/task.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/scheduler/task.c	2010-08-31 07:56:43 UTC (rev 3831)
+++ trunk/OpenDNSSEC/signer/src/scheduler/task.c	2010-08-31 08:10:17 UTC (rev 3832)
@@ -84,8 +84,12 @@
 
     se_log_assert(task);
 
-    filename = se_build_path(task->who, ".task", 0);
-    fd = se_fopen(filename, NULL, "w");
+    if (task && task->who) {
+        filename = se_build_path(task->who, ".task", 0);
+        fd = se_fopen(filename, NULL, "w");
+        se_free((void*)filename);
+    }
+
     if (fd) {
         fprintf(fd, ";%s\n", ODS_SE_FILE_MAGIC);
         fprintf(fd, "; who: %s\n", task->who);




More information about the Opendnssec-commits mailing list