diff options
Diffstat (limited to 'src/namestore/perf_namestore_api_zone_iteration.c')
-rw-r--r-- | src/namestore/perf_namestore_api_zone_iteration.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/namestore/perf_namestore_api_zone_iteration.c b/src/namestore/perf_namestore_api_zone_iteration.c index e8277ae65..c1012de62 100644 --- a/src/namestore/perf_namestore_api_zone_iteration.c +++ b/src/namestore/perf_namestore_api_zone_iteration.c | |||
@@ -64,7 +64,7 @@ static struct GNUNET_SCHEDULER_Task *timeout_task; | |||
64 | 64 | ||
65 | static struct GNUNET_SCHEDULER_Task *t; | 65 | static struct GNUNET_SCHEDULER_Task *t; |
66 | 66 | ||
67 | static struct GNUNET_CRYPTO_EcdsaPrivateKey *privkey; | 67 | static struct GNUNET_CRYPTO_EcdsaPrivateKey privkey; |
68 | 68 | ||
69 | static struct GNUNET_NAMESTORE_ZoneIterator *zi; | 69 | static struct GNUNET_NAMESTORE_ZoneIterator *zi; |
70 | 70 | ||
@@ -115,11 +115,6 @@ end (void *cls) | |||
115 | GNUNET_SCHEDULER_cancel (timeout_task); | 115 | GNUNET_SCHEDULER_cancel (timeout_task); |
116 | timeout_task = NULL; | 116 | timeout_task = NULL; |
117 | } | 117 | } |
118 | if (NULL != privkey) | ||
119 | { | ||
120 | GNUNET_free (privkey); | ||
121 | privkey = NULL; | ||
122 | } | ||
123 | } | 118 | } |
124 | 119 | ||
125 | 120 | ||
@@ -243,7 +238,7 @@ zone_proc (void *cls, | |||
243 | } | 238 | } |
244 | GNUNET_free (wrd); | 239 | GNUNET_free (wrd); |
245 | if (0 != GNUNET_memcmp (zone, | 240 | if (0 != GNUNET_memcmp (zone, |
246 | privkey)) | 241 | &privkey)) |
247 | { | 242 | { |
248 | res = 5; | 243 | res = 5; |
249 | GNUNET_break (0); | 244 | GNUNET_break (0); |
@@ -324,7 +319,7 @@ publish_record (void *cls) | |||
324 | "l%u", | 319 | "l%u", |
325 | off); | 320 | off); |
326 | qe = GNUNET_NAMESTORE_records_store (nsh, | 321 | qe = GNUNET_NAMESTORE_records_store (nsh, |
327 | privkey, | 322 | &privkey, |
328 | label, | 323 | label, |
329 | 1, rd, | 324 | 1, rd, |
330 | &put_cont, | 325 | &put_cont, |
@@ -346,8 +341,7 @@ run (void *cls, | |||
346 | NULL); | 341 | NULL); |
347 | nsh = GNUNET_NAMESTORE_connect (cfg); | 342 | nsh = GNUNET_NAMESTORE_connect (cfg); |
348 | GNUNET_assert (NULL != nsh); | 343 | GNUNET_assert (NULL != nsh); |
349 | privkey = GNUNET_CRYPTO_ecdsa_key_create (); | 344 | GNUNET_CRYPTO_ecdsa_key_create (&privkey); |
350 | GNUNET_assert (NULL != privkey); | ||
351 | start = GNUNET_TIME_absolute_get (); | 345 | start = GNUNET_TIME_absolute_get (); |
352 | t = GNUNET_SCHEDULER_add_now (&publish_record, | 346 | t = GNUNET_SCHEDULER_add_now (&publish_record, |
353 | NULL); | 347 | NULL); |