fix reverse lookup from namestore
authorSchanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>
Fri, 12 Jan 2018 12:36:38 +0000 (13:36 +0100)
committerSchanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>
Fri, 12 Jan 2018 12:36:38 +0000 (13:36 +0100)
src/namestore/plugin_namestore_sqlite.c

index 5c35335065b41a1bf9b3e4c057b6326d9c06e8ce..eb2378ed4ab5cc635d73f20d89d9c325721f110d 100644 (file)
@@ -466,7 +466,7 @@ namestore_sqlite_store_records (void *cls,
       uint32_t rd_count32 = (uint32_t) rd_count;
       struct GNUNET_SQ_QueryParam sparams[] = {
         GNUNET_SQ_query_param_auto_from_type (zone_key),
-        GNUNET_SQ_query_param_auto_from_type (&rvalue),
+        GNUNET_SQ_query_param_auto_from_type (&pkey),
         GNUNET_SQ_query_param_uint64 (&rvalue),
         GNUNET_SQ_query_param_uint32 (&rd_count32),
         GNUNET_SQ_query_param_fixed_size (data, data_size),