[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r29544 - gnunet/src/gns
From: |
gnunet |
Subject: |
[GNUnet-SVN] r29544 - gnunet/src/gns |
Date: |
Wed, 25 Sep 2013 15:42:24 +0200 |
Author: grothoff
Date: 2013-09-25 15:42:24 +0200 (Wed, 25 Sep 2013)
New Revision: 29544
Modified:
gnunet/src/gns/gnunet-service-gns_resolver.c
Log:
-fix cname lookup
Modified: gnunet/src/gns/gnunet-service-gns_resolver.c
===================================================================
--- gnunet/src/gns/gnunet-service-gns_resolver.c 2013-09-25 13:35:22 UTC
(rev 29543)
+++ gnunet/src/gns/gnunet-service-gns_resolver.c 2013-09-25 13:42:24 UTC
(rev 29544)
@@ -946,6 +946,7 @@
{
size_t nlen;
char *res;
+ struct AuthorityChain *ac;
nlen = strlen (cname);
if ( (nlen > 2) &&
@@ -970,6 +971,20 @@
}
GNUNET_free (rh->name);
rh->name = res;
+ ac = GNUNET_new (struct AuthorityChain);
+ ac->rh = rh;
+ ac->gns_authority = GNUNET_YES;
+ ac->authority_info.gns_authority =
rh->ac_tail->authority_info.gns_authority;
+ ac->label = resolver_lookup_get_next_label (rh);
+ /* tigger shortening */
+ if (NULL != rh->shorten_key)
+ GNS_shorten_start (rh->ac_tail->label,
+ &ac->authority_info.gns_authority,
+ rh->shorten_key);
+ /* add AC to tail */
+ GNUNET_CONTAINER_DLL_insert_tail (rh->ac_head,
+ rh->ac_tail,
+ ac);
rh->task_id = GNUNET_SCHEDULER_add_now (&recursive_resolution,
rh);
return;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r29544 - gnunet/src/gns,
gnunet <=