[Openvas-commits] r3343 - in trunk/openvas-manager: . src

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue May 12 17:24:24 CEST 2009


Author: mattm
Date: 2009-05-12 17:24:23 +0200 (Tue, 12 May 2009)
New Revision: 3343

Modified:
   trunk/openvas-manager/ChangeLog
   trunk/openvas-manager/src/openvasmd.c
Log:
	* src/openvasmd.c (cleanup): Check log_stream before closing.

Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog	2009-05-12 15:14:16 UTC (rev 3342)
+++ trunk/openvas-manager/ChangeLog	2009-05-12 15:24:23 UTC (rev 3343)
@@ -1,3 +1,7 @@
+2009-05-12  Matthew Mundell <mmundell at intevation.de>
+
+	* src/openvasmd.c (cleanup): Check log_stream before closing.
+
 2009-05-12  Michael Wiegand <michael.wiegand at intevation.de>
 
 	Post release version bump.

Modified: trunk/openvas-manager/src/openvasmd.c
===================================================================
--- trunk/openvas-manager/src/openvasmd.c	2009-05-12 15:14:16 UTC (rev 3342)
+++ trunk/openvas-manager/src/openvasmd.c	2009-05-12 15:24:23 UTC (rev 3343)
@@ -543,7 +543,7 @@
   cleanup_manage ();
   if (manager_socket > -1) close (manager_socket);
 #if LOG
-  if (fclose (log_stream)) perror ("Failed to close log stream");
+  if (log_stream && fclose (log_stream)) perror ("Failed to close log stream");
 #endif
   ovas_server_context_free (server_context);
 }



More information about the Openvas-commits mailing list