diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-03-02 22:10:38 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-03-02 22:10:38 +0000 |
commit | 57710b3ea68a1aa0dfec307496e5209c390f9e91 (patch) | |
tree | bcfcf37ee084cf680e0650ebec53808d0f8c537d /src/gns/gnunet-service-gns.c | |
parent | 668e0eef08f6387bc9d558e9013848ade6dd54b5 (diff) | |
download | gnunet-57710b3ea68a1aa0dfec307496e5209c390f9e91.tar.gz gnunet-57710b3ea68a1aa0dfec307496e5209c390f9e91.zip |
-new test, fixes
Diffstat (limited to 'src/gns/gnunet-service-gns.c')
-rw-r--r-- | src/gns/gnunet-service-gns.c | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/src/gns/gnunet-service-gns.c b/src/gns/gnunet-service-gns.c index af5468eba..9ec08b205 100644 --- a/src/gns/gnunet-service-gns.c +++ b/src/gns/gnunet-service-gns.c | |||
@@ -606,30 +606,29 @@ process_authority_lookup(void* cls, | |||
606 | if (rd[i].record_type != GNUNET_GNS_RECORD_PKEY) | 606 | if (rd[i].record_type != GNUNET_GNS_RECORD_PKEY) |
607 | continue; | 607 | continue; |
608 | 608 | ||
609 | if ((GNUNET_TIME_absolute_get_remaining (rd[i].expiration)).rel_value | 609 | if ((GNUNET_TIME_absolute_get_remaining (rd[i].expiration)).rel_value |
610 | == 0) | 610 | == 0) |
611 | { | ||
612 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "This pkey is expired.\n"); | ||
613 | if (remaining_time.rel_value == 0) | ||
611 | { | 614 | { |
612 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "This pkey is expired.\n"); | 615 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, |
613 | if (remaining_time.rel_value == 0) | 616 | "This dht entry is expired. Refreshing\n"); |
614 | { | 617 | resolve_authority_dht(rh); |
615 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, | ||
616 | "This dht entry is expired. Refreshing\n"); | ||
617 | resolve_authority_dht(rh); | ||
618 | } | ||
619 | |||
620 | continue; | ||
621 | } | 618 | } |
622 | 619 | ||
623 | /** | 620 | continue; |
624 | * Resolve rest of query with new authority | 621 | } |
625 | */ | 622 | |
626 | GNUNET_assert(rd[i].record_type == GNUNET_GNS_RECORD_PKEY); | 623 | /** |
627 | GNUNET_CRYPTO_hash(rd[i].data, | 624 | * Resolve rest of query with new authority |
628 | sizeof(struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), | 625 | */ |
629 | &rh->authority); | 626 | GNUNET_assert(rd[i].record_type == GNUNET_GNS_RECORD_PKEY); |
630 | resolve_name(rh); | 627 | GNUNET_CRYPTO_hash(rd[i].data, |
631 | return; | 628 | sizeof(struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), |
632 | 629 | &rh->authority); | |
630 | resolve_name(rh); | ||
631 | return; | ||
633 | } | 632 | } |
634 | 633 | ||
635 | /** | 634 | /** |