aboutsummaryrefslogtreecommitdiff
path: root/src/namestore
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-12-04 12:43:48 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-12-04 12:43:48 +0000
commit6ed6289b5400ba9359827d8a9b93c4496a27e86f (patch)
treebb718106d309d74158db1759c918965a58349684 /src/namestore
parentcfe312d47e0685df7f753727bded7f28096e5a86 (diff)
downloadgnunet-6ed6289b5400ba9359827d8a9b93c4496a27e86f.tar.gz
gnunet-6ed6289b5400ba9359827d8a9b93c4496a27e86f.zip
add nick name for cached records
Diffstat (limited to 'src/namestore')
-rw-r--r--src/namestore/gnunet-service-namestore.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c
index dba0b8235..7eb7660ce 100644
--- a/src/namestore/gnunet-service-namestore.c
+++ b/src/namestore/gnunet-service-namestore.c
@@ -683,24 +683,24 @@ refresh_block (struct GNUNET_SERVER_Client *client,
683 GNUNET_free (nick); 683 GNUNET_free (nick);
684 } 684 }
685 685
686 if (0 == rd_count) 686 if (0 == res_count)
687 block = GNUNET_GNSRECORD_block_create (zone_key, 687 block = GNUNET_GNSRECORD_block_create (zone_key,
688 GNUNET_TIME_UNIT_ZERO_ABS, 688 GNUNET_TIME_UNIT_ZERO_ABS,
689 name, 689 name,
690 rd, rd_count); 690 res, rd_count);
691 else 691 else
692 block = GNUNET_GNSRECORD_block_create (zone_key, 692 block = GNUNET_GNSRECORD_block_create (zone_key,
693 GNUNET_GNSRECORD_record_get_expiration_time (rd_count, 693 GNUNET_GNSRECORD_record_get_expiration_time (res_count,
694 rd), 694 res),
695 name, 695 name,
696 rd, rd_count); 696 res, res_count);
697 GNUNET_assert (NULL != block); 697 GNUNET_assert (NULL != block);
698 GNUNET_CRYPTO_ecdsa_key_get_public (zone_key, 698 GNUNET_CRYPTO_ecdsa_key_get_public (zone_key,
699 &pkey); 699 &pkey);
700 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 700 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
701 "Caching block for label `%s' with %u records in zone `%s' in namecache\n", 701 "Caching block for label `%s' with %u records in zone `%s' in namecache\n",
702 name, 702 name,
703 rd_count, 703 res_count,
704 GNUNET_GNSRECORD_z2s (&pkey)); 704 GNUNET_GNSRECORD_z2s (&pkey));
705 cop = GNUNET_new (struct CacheOperation); 705 cop = GNUNET_new (struct CacheOperation);
706 cop->client = client; 706 cop->client = client;