diff options
Diffstat (limited to 'src/fs/fs_uri.c')
-rw-r--r-- | src/fs/fs_uri.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/fs/fs_uri.c b/src/fs/fs_uri.c index 5dfdcb54d..43cf2c5bd 100644 --- a/src/fs/fs_uri.c +++ b/src/fs/fs_uri.c | |||
@@ -1377,15 +1377,17 @@ GNUNET_FS_uri_sks_to_string_fancy (struct GNUNET_CONFIGURATION_Handle *cfg, | |||
1377 | const struct GNUNET_FS_Uri *uri) | 1377 | const struct GNUNET_FS_Uri *uri) |
1378 | { | 1378 | { |
1379 | char *ret; | 1379 | char *ret; |
1380 | char *name; | 1380 | char *name, *unique_name; |
1381 | int getinfo_result; | ||
1381 | 1382 | ||
1382 | if (uri->type != sks) | 1383 | if (uri->type != sks) |
1383 | return NULL; | 1384 | return NULL; |
1384 | name = GNUNET_PSEUDONYM_id_to_name (cfg, &uri->data.sks.namespace); | 1385 | getinfo_result = GNUNET_PSEUDONYM_get_info (cfg, &uri->data.sks.namespace, |
1385 | if (name == NULL) | 1386 | NULL, NULL, &name, NULL); |
1386 | return GNUNET_FS_uri_to_string (uri); | 1387 | unique_name = GNUNET_PSEUDONYM_name_uniquify (cfg, &uri->data.sks.namespace, name, NULL); |
1387 | GNUNET_asprintf (&ret, "%s: %s", name, uri->data.sks.identifier); | ||
1388 | GNUNET_free (name); | 1388 | GNUNET_free (name); |
1389 | GNUNET_asprintf (&ret, "%s: %s", unique_name, uri->data.sks.identifier); | ||
1390 | GNUNET_free (unique_name); | ||
1389 | return ret; | 1391 | return ret; |
1390 | } | 1392 | } |
1391 | 1393 | ||