next = nc->next;
for (no = nc->op_head; no != NULL; no = tmp)
{
+ GNUNET_break (0);
GNUNET_CONTAINER_DLL_remove (nc->op_head, nc->op_tail, no);
tmp = no->next;
GNUNET_free (no);
}
-
GNUNET_SERVER_client_drop(nc->client);
GNUNET_CONTAINER_DLL_remove (client_head, client_tail, nc);
GNUNET_free (nc);
return;
}
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Looking up record for name `%s'\n", name);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Looking up record for name `%s' in zone `%s'\n", name, GNUNET_h2s(&ln_msg->zone));
/* do the actual lookup */
lnc.request_id = rid;
GNUNET_HashCode zone_hash;
GNUNET_CRYPTO_hash (zone_key, key_len, &zone_hash);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Putting %u record for name `%s' in zone `%s'\n", rd_count, name, GNUNET_h2s(&zone_hash));
+
/* Database operation */
res = GSN_database->put_records(GSN_database->cls,
zone_key,
crc.nc = nc;
crc.op_id = rid;
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Creating record for name `%s' in zone `%s'\n", name_tmp, GNUNET_h2s(&pubkey_hash));
+
/* Get existing records for name */
res = GSN_database->iterate_records(GSN_database->cls, &pubkey_hash, name_tmp, 0, &handle_create_record_it, &crc);
rrc.rd = rd;
rrc.pkey = pkey;
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Removing record for name `%s' in zone `%s'\n", name_tmp, GNUNET_h2s(&pubkey_hash));
+
/* Database operation */
res = GSN_database->iterate_records (GSN_database->cls,
&pubkey_hash,
failed = GNUNET_YES;
}
- if (0 != memcmp (signature, &s_signature, sizeof (struct GNUNET_CRYPTO_RsaSignature)))
+ if (0 != memcmp (signature, s_signature, sizeof (struct GNUNET_CRYPTO_RsaSignature)))
{
GNUNET_break (0);
failed = GNUNET_YES;
GNUNET_TIME_absolute_get_forever(),
RECORDS, s_rd, s_signature, put_cont, s_name);
- GNUNET_free (s_signature);
+
}
int ret;
ret = check ();
-
+ GNUNET_free (s_signature);
return ret;
}