projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
151053e
)
fix 2273
author
Matthias Wachs
<wachs@net.in.tum.de>
Wed, 18 Apr 2012 13:49:05 +0000
(13:49 +0000)
committer
Matthias Wachs
<wachs@net.in.tum.de>
Wed, 18 Apr 2012 13:49:05 +0000
(13:49 +0000)
src/statistics/statistics_api.c
patch
|
blob
|
history
diff --git
a/src/statistics/statistics_api.c
b/src/statistics/statistics_api.c
index c0b978f70e59184e87dfb7492c67aadd55ea8927..253e597372237319eb0a2c8c892387902018f3c9 100644
(file)
--- 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,