diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-04-18 13:49:05 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-04-18 13:49:05 +0000 |
commit | b8156b15d817bb2ae518777b749a231e9d7cc1a3 (patch) | |
tree | 945debbb20c0e6f1ffabfa6c0b53c78d8bf4b37f /src/statistics | |
parent | 151053e6aea2c91059843885748bbd10ff183e9b (diff) |
fix 2273
Diffstat (limited to 'src/statistics')
-rw-r--r-- | src/statistics/statistics_api.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c index c0b978f70e..253e597372 100644 --- a/src/statistics/statistics_api.c +++ b/src/statistics/statistics_api.c @@ -281,6 +281,8 @@ schedule_watch_request (struct GNUNET_STATISTICS_Handle *h, size_t nsize; GNUNET_assert (h != NULL); + GNUNET_assert (watch != NULL); + slen = strlen (watch->subsystem) + 1; nlen = strlen (watch->name) + 1; nsize = sizeof (struct GNUNET_MessageHeader) + slen + nlen; @@ -382,7 +384,10 @@ try_connect (struct GNUNET_STATISTICS_Handle *h) } } for (i = 0; i < h->watches_size; i++) - schedule_watch_request (h, h->watches[i]); + { + if (NULL != h->watches[i]) + schedule_watch_request (h, h->watches[i]); + } return GNUNET_YES; } LOG (GNUNET_ERROR_TYPE_DEBUG, |