diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/revocation/gnunet-revocation.c | 6 |
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 | */ |
239 | static void | 239 | static void |
240 | sync_rd (const struct RevocationData *rd) | 240 | sync_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, |