diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-11-13 15:37:43 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-11-13 15:37:43 +0000 |
commit | 66a8e9b583890a925e950943ea84e5ef3da602eb (patch) | |
tree | 18948a5588d24f82356ea689f3b4ac7ac52ea3e0 /src/namestore | |
parent | 0985b95929255efbb2cb2614faca039b50153cd0 (diff) | |
download | gnunet-66a8e9b583890a925e950943ea84e5ef3da602eb.tar.gz gnunet-66a8e9b583890a925e950943ea84e5ef3da602eb.zip |
remove private flag
Diffstat (limited to 'src/namestore')
-rw-r--r-- | src/namestore/gnunet-service-namestore.c | 2 | ||||
-rw-r--r-- | src/namestore/test_namestore_api_lookup_nick.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c index ffffc704e..f997b7b9c 100644 --- a/src/namestore/gnunet-service-namestore.c +++ b/src/namestore/gnunet-service-namestore.c | |||
@@ -534,6 +534,7 @@ send_lookup_response (struct GNUNET_SERVER_NotificationContext *nc, | |||
534 | nick = get_nick_record (zone_key); | 534 | nick = get_nick_record (zone_key); |
535 | if ((NULL != nick) && (0 != strcmp(name, GNUNET_GNS_MASTERZONE_STR))) | 535 | if ((NULL != nick) && (0 != strcmp(name, GNUNET_GNS_MASTERZONE_STR))) |
536 | { | 536 | { |
537 | nick->flags = (nick->flags | GNUNET_GNSRECORD_RF_PRIVATE) ^ GNUNET_GNSRECORD_RF_PRIVATE; | ||
537 | merge_records (rd_count,rd, 1, nick, &res_count, &res); | 538 | merge_records (rd_count,rd, 1, nick, &res_count, &res); |
538 | GNUNET_free (nick); | 539 | GNUNET_free (nick); |
539 | } | 540 | } |
@@ -724,6 +725,7 @@ lookup_it (void *cls, const struct GNUNET_CRYPTO_EcdsaPrivateKey *private_key, | |||
724 | /* Merge */ | 725 | /* Merge */ |
725 | rd_res = NULL; | 726 | rd_res = NULL; |
726 | rdc_res = 0; | 727 | rdc_res = 0; |
728 | rlc->nick->flags = (rlc->nick->flags | GNUNET_GNSRECORD_RF_PRIVATE) ^ GNUNET_GNSRECORD_RF_PRIVATE; | ||
727 | merge_records (rd_count, rd, | 729 | merge_records (rd_count, rd, |
728 | 1, rlc->nick, | 730 | 1, rlc->nick, |
729 | &rdc_res, &rd_res); | 731 | &rdc_res, &rd_res); |
diff --git a/src/namestore/test_namestore_api_lookup_nick.c b/src/namestore/test_namestore_api_lookup_nick.c index c9a1c5f19..99f5822f9 100644 --- a/src/namestore/test_namestore_api_lookup_nick.c +++ b/src/namestore/test_namestore_api_lookup_nick.c | |||
@@ -150,7 +150,7 @@ void lookup_it (void *cls, | |||
150 | endbadly_task = GNUNET_SCHEDULER_add_now (&endbadly, NULL ); | 150 | endbadly_task = GNUNET_SCHEDULER_add_now (&endbadly, NULL ); |
151 | return; | 151 | return; |
152 | } | 152 | } |
153 | if (rd[c].flags != GNUNET_GNSRECORD_RF_PRIVATE) | 153 | if (0 != (rd[c].flags & GNUNET_GNSRECORD_RF_PRIVATE)) |
154 | { | 154 | { |
155 | GNUNET_break(0); | 155 | GNUNET_break(0); |
156 | GNUNET_SCHEDULER_cancel (endbadly_task); | 156 | GNUNET_SCHEDULER_cancel (endbadly_task); |