-fix uninit and fix leak
[oweals/gnunet.git] / src / gns / test_gns_simple_lookup.c
index ff325a4649d058573089265c17d5b0e32ab3031b..a7c3348fdb8b74d98fe2c5d4041fe77965abacf6 100644 (file)
@@ -260,12 +260,12 @@ do_check (void *cls,
   rd.data = &web;
   rd.record_type = GNUNET_DNSPARSER_TYPE_A;
   rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
-  nsqe = GNUNET_NAMESTORE_record_create (namestore_handle,
-                                        alice_key,
-                                        TEST_RECORD_NAME,
-                                        &rd,
-                                        &commence_testing,
-                                        NULL);
+  nsqe = GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
+                                                  alice_key,
+                                                  TEST_RECORD_NAME,
+                                                  1, &rd,
+                                                  &commence_testing,
+                                                  NULL);
   GNUNET_CRYPTO_ecc_key_free (alice_key);
 }