aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_zone_to_name.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-11-12 17:49:34 +0100
committerChristian Grothoff <christian@grothoff.org>2020-11-12 17:49:34 +0100
commit3522008dfd14f049a821dfba7ba89a27aa27d4aa (patch)
tree09cc48925133f736e48bb2be4f239fb7d6d01950 /src/namestore/test_namestore_api_zone_to_name.c
parent23f8671e09a80bf722c3268e8d477b5ce5e3d76a (diff)
parente11d1e59e4ae5f7d89c33df3ae9ca8f1ece990cf (diff)
downloadgnunet-3522008dfd14f049a821dfba7ba89a27aa27d4aa.tar.gz
gnunet-3522008dfd14f049a821dfba7ba89a27aa27d4aa.zip
Merge branch 'master' of git+ssh://gnunet.org/gnunet
Diffstat (limited to 'src/namestore/test_namestore_api_zone_to_name.c')
-rw-r--r--src/namestore/test_namestore_api_zone_to_name.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/namestore/test_namestore_api_zone_to_name.c b/src/namestore/test_namestore_api_zone_to_name.c
index e5ede6bcd..3fd10e4a1 100644
--- a/src/namestore/test_namestore_api_zone_to_name.c
+++ b/src/namestore/test_namestore_api_zone_to_name.c
@@ -212,12 +212,13 @@ run (void *cls,
212 GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_WEAK, 212 GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_WEAK,
213 &s_zone_value, 213 &s_zone_value,
214 sizeof(s_zone_value)); 214 sizeof(s_zone_value));
215 s_zone_value.type = htonl (GNUNET_GNSRECORD_TYPE_PKEY);
215 { 216 {
216 struct GNUNET_GNSRECORD_Data rd; 217 struct GNUNET_GNSRECORD_Data rd;
217 218
218 rd.expiration_time = GNUNET_TIME_absolute_get ().abs_value_us; 219 rd.expiration_time = GNUNET_TIME_absolute_get ().abs_value_us;
219 rd.record_type = GNUNET_GNSRECORD_TYPE_PKEY; 220 rd.record_type = GNUNET_GNSRECORD_TYPE_PKEY;
220 rd.data_size = sizeof(s_zone_value); 221 rd.data_size = GNUNET_IDENTITY_key_get_length (&s_zone_value);
221 rd.data = &s_zone_value; 222 rd.data = &s_zone_value;
222 rd.flags = 0; 223 rd.flags = 0;
223 224