aboutsummaryrefslogtreecommitdiff
path: root/src/revocation/gnunet-revocation.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-06-19 22:38:29 +0000
committerChristian Grothoff <christian@grothoff.org>2016-06-19 22:38:29 +0000
commit282b5b400beea9c381ad0959624fd92f4c0b8e29 (patch)
tree9b1448d146941af55de62454f144c8fa0c29f712 /src/revocation/gnunet-revocation.c
parent4707789ebfb4cef9672db31e3ceb8f98381901d0 (diff)
downloadgnunet-282b5b400beea9c381ad0959624fd92f4c0b8e29.tar.gz
gnunet-282b5b400beea9c381ad0959624fd92f4c0b8e29.zip
-fix gnunet-revocation
Diffstat (limited to 'src/revocation/gnunet-revocation.c')
-rw-r--r--src/revocation/gnunet-revocation.c6
1 files changed, 4 insertions, 2 deletions
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)
238 */ 238 */
239static void 239static void
240sync_rd (const struct RevocationData *rd) 240sync_rd (const struct RevocationData *rd)
241{ 241{
242 if ( (NULL != filename) && 242 if ( (NULL != filename) &&
243 (sizeof (struct RevocationData) == 243 (sizeof (struct RevocationData) ==
244 GNUNET_DISK_fn_write (filename, 244 GNUNET_DISK_fn_write (filename,
@@ -283,6 +283,7 @@ calculate_pow (void *cls)
283 struct RevocationData *rd = cls; 283 struct RevocationData *rd = cls;
284 284
285 /* store temporary results */ 285 /* store temporary results */
286 pow_task = NULL;
286 if (0 == (rd->pow % 128)) 287 if (0 == (rd->pow % 128))
287 sync_rd (rd); 288 sync_rd (rd);
288 /* display progress estimate */ 289 /* display progress estimate */
@@ -312,7 +313,9 @@ calculate_pow (void *cls)
312 "write", 313 "write",
313 filename); 314 filename);
314 if (perform) 315 if (perform)
316 {
315 perform_revocation (rd); 317 perform_revocation (rd);
318 }
316 else 319 else
317 { 320 {
318 FPRINTF (stderr, "%s", "\n"); 321 FPRINTF (stderr, "%s", "\n");
@@ -322,7 +325,6 @@ calculate_pow (void *cls)
322 filename); 325 filename);
323 GNUNET_SCHEDULER_shutdown (); 326 GNUNET_SCHEDULER_shutdown ();
324 } 327 }
325 GNUNET_free (rd);
326 return; 328 return;
327 } 329 }
328 pow_task = GNUNET_SCHEDULER_add_now (&calculate_pow, 330 pow_task = GNUNET_SCHEDULER_add_now (&calculate_pow,