[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r14008 - gnunet/src/statistics
From: |
gnunet |
Subject: |
[GNUnet-SVN] r14008 - gnunet/src/statistics |
Date: |
Tue, 21 Dec 2010 17:23:14 +0100 |
Author: grothoff
Date: 2010-12-21 17:23:14 +0100 (Tue, 21 Dec 2010)
New Revision: 14008
Modified:
gnunet/src/statistics/statistics_api.c
Log:
fail on fatal connect error
Modified: gnunet/src/statistics/statistics_api.c
===================================================================
--- gnunet/src/statistics/statistics_api.c 2010-12-21 16:22:05 UTC (rev
14007)
+++ gnunet/src/statistics/statistics_api.c 2010-12-21 16:23:14 UTC (rev
14008)
@@ -766,6 +766,7 @@
struct GNUNET_TIME_Relative timeout;
int i;
+ if (h == NULL) return;
if (GNUNET_SCHEDULER_NO_TASK != h->backoff_task)
GNUNET_SCHEDULER_cancel (h->backoff_task);
if (sync_first)
@@ -918,6 +919,7 @@
}
}
+
/**
* Get statistic from the peer.
*
@@ -1025,6 +1027,8 @@
{
struct GNUNET_STATISTICS_WatchEntry *w;
+ if (handle == NULL)
+ return GNUNET_SYSERR;
w = GNUNET_malloc (sizeof (struct GNUNET_STATISTICS_WatchEntry));
w->subsystem = GNUNET_strdup (subsystem);
w->name = GNUNET_strdup (name);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r14008 - gnunet/src/statistics,
gnunet <=