From 282b5b400beea9c381ad0959624fd92f4c0b8e29 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 19 Jun 2016 22:38:29 +0000 Subject: -fix gnunet-revocation --- src/revocation/gnunet-revocation.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/revocation/gnunet-revocation.c') diff --git a/src/revocation/gnunet-revocation.c b/src/revocation/gnunet-revocation.c index 5e983a079..133468789 100644 --- a/src/revocation/gnunet-revocation.c +++ b/src/revocation/gnunet-revocation.c @@ -238,7 +238,7 @@ perform_revocation (const struct RevocationData *rd) */ static void sync_rd (const struct RevocationData *rd) -{ +{ if ( (NULL != filename) && (sizeof (struct RevocationData) == GNUNET_DISK_fn_write (filename, @@ -283,6 +283,7 @@ calculate_pow (void *cls) struct RevocationData *rd = cls; /* store temporary results */ + pow_task = NULL; if (0 == (rd->pow % 128)) sync_rd (rd); /* display progress estimate */ @@ -312,7 +313,9 @@ calculate_pow (void *cls) "write", filename); if (perform) + { perform_revocation (rd); + } else { FPRINTF (stderr, "%s", "\n"); @@ -322,7 +325,6 @@ calculate_pow (void *cls) filename); GNUNET_SCHEDULER_shutdown (); } - GNUNET_free (rd); return; } pow_task = GNUNET_SCHEDULER_add_now (&calculate_pow, -- cgit v1.2.3