diff options
Diffstat (limited to 'src/fs/gnunet-fs-gtk_main-window-search.c')
-rw-r--r-- | src/fs/gnunet-fs-gtk_main-window-search.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/fs/gnunet-fs-gtk_main-window-search.c b/src/fs/gnunet-fs-gtk_main-window-search.c index 10209a3d..d23cb656 100644 --- a/src/fs/gnunet-fs-gtk_main-window-search.c +++ b/src/fs/gnunet-fs-gtk_main-window-search.c | |||
@@ -133,11 +133,6 @@ handle_gns_result (void *cls, | |||
133 | { | 133 | { |
134 | if (GNUNET_GNSRECORD_TYPE_PKEY != rd[i].record_type) | 134 | if (GNUNET_GNSRECORD_TYPE_PKEY != rd[i].record_type) |
135 | continue; | 135 | continue; |
136 | if (sizeof (struct GNUNET_IDENTITY_PublicKey) != rd[i].data_size) | ||
137 | { | ||
138 | GNUNET_break_op (0); | ||
139 | continue; | ||
140 | } | ||
141 | uri = GNUNET_FS_uri_sks_create (rd[i].data, sl->keywords); | 136 | uri = GNUNET_FS_uri_sks_create (rd[i].data, sl->keywords); |
142 | search_for_uri (uri, sl->anonymity_level); | 137 | search_for_uri (uri, sl->anonymity_level); |
143 | abort_search_lookup (sl); | 138 | abort_search_lookup (sl); |
@@ -413,7 +408,7 @@ save_pseudonym_with_nick (struct PseuLookupContext *lctx, const char *nick) | |||
413 | /* show the window */ | 408 | /* show the window */ |
414 | gtk_window_present (GTK_WINDOW (lctx->progress_dialog)); | 409 | gtk_window_present (GTK_WINDOW (lctx->progress_dialog)); |
415 | memset (&rd, 0, sizeof (rd)); | 410 | memset (&rd, 0, sizeof (rd)); |
416 | rd.data_size = sizeof (struct GNUNET_IDENTITY_PublicKey); | 411 | rd.data_size = GNUNET_IDENTITY_key_get_length (&lctx->pkey); |
417 | rd.data = &lctx->pkey; | 412 | rd.data = &lctx->pkey; |
418 | rd.flags = GNUNET_GNSRECORD_RF_PRIVATE; | 413 | rd.flags = GNUNET_GNSRECORD_RF_PRIVATE; |
419 | rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us; | 414 | rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us; |