diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-08 18:41:07 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-08 18:41:07 +0000 |
commit | 2168e300fae74c5da28a2f3f57d67b7705f038a2 (patch) | |
tree | 2fec4a8a42292f9feff2481c85db50df3638f94d /src/namestore/gnunet-service-namestore.c | |
parent | d9e144b09a47db8e72cbf85390df298421451322 (diff) | |
download | gnunet-2168e300fae74c5da28a2f3f57d67b7705f038a2.tar.gz gnunet-2168e300fae74c5da28a2f3f57d67b7705f038a2.zip |
fixing #2992: do not use hash of pkey and then match against pkey, that will not work...
Diffstat (limited to 'src/namestore/gnunet-service-namestore.c')
-rw-r--r-- | src/namestore/gnunet-service-namestore.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c index ef200a8f4..49315f6e0 100644 --- a/src/namestore/gnunet-service-namestore.c +++ b/src/namestore/gnunet-service-namestore.c | |||
@@ -509,7 +509,7 @@ handle_block_cache (void *cls, | |||
509 | * @param rd array of records | 509 | * @param rd array of records |
510 | */ | 510 | */ |
511 | static void | 511 | static void |
512 | send_lookup_response (struct GNUNET_SERVER_NotificationContext *nc, | 512 | send_lookup_response (struct GNUNET_SERVER_NotificationContext *nc, |
513 | struct GNUNET_SERVER_Client *client, | 513 | struct GNUNET_SERVER_Client *client, |
514 | uint32_t request_id, | 514 | uint32_t request_id, |
515 | const struct GNUNET_CRYPTO_EccPrivateKey *zone_key, | 515 | const struct GNUNET_CRYPTO_EccPrivateKey *zone_key, |
@@ -701,7 +701,7 @@ handle_record_store (void *cls, | |||
701 | { | 701 | { |
702 | res = GSN_database->store_records (GSN_database->cls, | 702 | res = GSN_database->store_records (GSN_database->cls, |
703 | &rp_msg->private_key, | 703 | &rp_msg->private_key, |
704 | conv_name, | 704 | conv_name, |
705 | rd_count, rd); | 705 | rd_count, rd); |
706 | if (GNUNET_OK == res) | 706 | if (GNUNET_OK == res) |
707 | { | 707 | { |
@@ -863,6 +863,8 @@ handle_zone_to_name (void *cls, | |||
863 | if (GNUNET_NO == ztn_ctx.success) | 863 | if (GNUNET_NO == ztn_ctx.success) |
864 | { | 864 | { |
865 | /* no result found, send empty response */ | 865 | /* no result found, send empty response */ |
866 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
867 | "Found no result for zone-to-name lookup.\n"); | ||
866 | memset (&ztnr_msg, 0, sizeof (ztnr_msg)); | 868 | memset (&ztnr_msg, 0, sizeof (ztnr_msg)); |
867 | ztnr_msg.gns_header.header.type = htons (GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_TO_NAME_RESPONSE); | 869 | ztnr_msg.gns_header.header.type = htons (GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_TO_NAME_RESPONSE); |
868 | ztnr_msg.gns_header.header.size = htons (sizeof (ztnr_msg)); | 870 | ztnr_msg.gns_header.header.size = htons (sizeof (ztnr_msg)); |