diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-09 16:09:04 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-09 16:09:04 +0000 |
commit | c181e07637404d58fe0022234f61173098387dbf (patch) | |
tree | 1cb726fe0d1bd328a43f576539d2a8820f699b3a /src/statistics/statistics_api.c | |
parent | 65b40ba69377fbf6ced703e511db7a63761a6b04 (diff) | |
download | gnunet-c181e07637404d58fe0022234f61173098387dbf.tar.gz gnunet-c181e07637404d58fe0022234f61173098387dbf.zip |
fix crash
Diffstat (limited to 'src/statistics/statistics_api.c')
-rw-r--r-- | src/statistics/statistics_api.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c index 8e80a4d75..8e453bfd4 100644 --- a/src/statistics/statistics_api.c +++ b/src/statistics/statistics_api.c | |||
@@ -679,6 +679,8 @@ transmit_action (void *cls, size_t size, void *buf) | |||
679 | size_t ret; | 679 | size_t ret; |
680 | 680 | ||
681 | handle->th = NULL; | 681 | handle->th = NULL; |
682 | if (NULL == handle->current) | ||
683 | return 0; | ||
682 | switch (handle->current->type) | 684 | switch (handle->current->type) |
683 | { | 685 | { |
684 | case ACTION_GET: | 686 | case ACTION_GET: |
@@ -877,6 +879,7 @@ schedule_action (struct GNUNET_STATISTICS_Handle *h) | |||
877 | } | 879 | } |
878 | GNUNET_CONTAINER_DLL_remove (h->action_head, h->action_tail, h->current); | 880 | GNUNET_CONTAINER_DLL_remove (h->action_head, h->action_tail, h->current); |
879 | timeout = GNUNET_TIME_absolute_get_remaining (h->current->timeout); | 881 | timeout = GNUNET_TIME_absolute_get_remaining (h->current->timeout); |
882 | GNUNET_assert (NULL == h->th); | ||
880 | if (NULL == | 883 | if (NULL == |
881 | (h->th = | 884 | (h->th = |
882 | GNUNET_CLIENT_notify_transmit_ready (h->client, h->current->msize, | 885 | GNUNET_CLIENT_notify_transmit_ready (h->client, h->current->msize, |