gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r19377 - gnunet/src/statistics


From: gnunet
Subject: [GNUnet-SVN] r19377 - gnunet/src/statistics
Date: Wed, 25 Jan 2012 11:23:55 +0100

Author: grothoff
Date: 2012-01-25 11:23:55 +0100 (Wed, 25 Jan 2012)
New Revision: 19377

Modified:
   gnunet/src/statistics/gnunet-service-statistics.c
Log:
-check return value

Modified: gnunet/src/statistics/gnunet-service-statistics.c
===================================================================
--- gnunet/src/statistics/gnunet-service-statistics.c   2012-01-25 10:22:42 UTC 
(rev 19376)
+++ gnunet/src/statistics/gnunet-service-statistics.c   2012-01-25 10:23:55 UTC 
(rev 19377)
@@ -245,7 +245,8 @@
       if (GNUNET_OK != GNUNET_BIO_write (wh, pos->msg, size))
       {
         GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "write", fn);
-        GNUNET_BIO_write_close (wh);
+        if (GNUNET_OK != GNUNET_BIO_write_close (wh))
+         GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "close", fn);
         wh = NULL;
       }
       else
@@ -255,7 +256,8 @@
   }
   if (NULL != wh)
   {
-    GNUNET_BIO_write_close (wh);
+    if (GNUNET_OK != GNUNET_BIO_write_close (wh))
+      GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "close", fn);
     if (total == 0)
       GNUNET_break (0 == UNLINK (fn));
     else




reply via email to

[Prev in Thread] Current Thread [Next in Thread]