diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-11-16 08:32:27 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-11-16 08:32:27 +0000 |
commit | b1685ed04171415c242ae8e39061e899a8c6f2f5 (patch) | |
tree | 1c7ba32c278eae2e37cc8933757548785d220bd3 /src/util/pseudonym.c | |
parent | c3140081a55e9913de37ff21734b3da5b89b4302 (diff) | |
download | gnunet-b1685ed04171415c242ae8e39061e899a8c6f2f5.tar.gz gnunet-b1685ed04171415c242ae8e39061e899a8c6f2f5.zip |
bugfix
Diffstat (limited to 'src/util/pseudonym.c')
-rw-r--r-- | src/util/pseudonym.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/pseudonym.c b/src/util/pseudonym.c index 91bdd6c9d..67bca2e4a 100644 --- a/src/util/pseudonym.c +++ b/src/util/pseudonym.c | |||
@@ -409,7 +409,7 @@ list_pseudonym_helper (void *cls, const char *fullname) | |||
409 | int rating; | 409 | int rating; |
410 | struct GNUNET_CONTAINER_MetaData *meta; | 410 | struct GNUNET_CONTAINER_MetaData *meta; |
411 | const char *fn; | 411 | const char *fn; |
412 | const char *str = "not null"; | 412 | char *str; |
413 | 413 | ||
414 | if (strlen (fullname) < sizeof (struct GNUNET_CRYPTO_HashAsciiEncoded)) | 414 | if (strlen (fullname) < sizeof (struct GNUNET_CRYPTO_HashAsciiEncoded)) |
415 | return GNUNET_OK; | 415 | return GNUNET_OK; |
@@ -421,8 +421,10 @@ list_pseudonym_helper (void *cls, const char *fullname) | |||
421 | ret = GNUNET_OK; | 421 | ret = GNUNET_OK; |
422 | if (GNUNET_OK != GNUNET_CRYPTO_hash_from_string (fn, &id)) | 422 | if (GNUNET_OK != GNUNET_CRYPTO_hash_from_string (fn, &id)) |
423 | return GNUNET_OK; /* invalid name */ | 423 | return GNUNET_OK; /* invalid name */ |
424 | str = NULL; | ||
424 | if (GNUNET_OK != read_info (c->cfg, &id, &meta, &rating, &str)) | 425 | if (GNUNET_OK != read_info (c->cfg, &id, &meta, &rating, &str)) |
425 | return GNUNET_OK; /* ignore entry */ | 426 | return GNUNET_OK; /* ignore entry */ |
427 | GNUNET_free_non_null (str); | ||
426 | if (c->iterator != NULL) | 428 | if (c->iterator != NULL) |
427 | ret = c->iterator (c->closure, &id, meta, rating); | 429 | ret = c->iterator (c->closure, &id, meta, rating); |
428 | GNUNET_CONTAINER_meta_data_destroy (meta); | 430 | GNUNET_CONTAINER_meta_data_destroy (meta); |