From 66a8e9b583890a925e950943ea84e5ef3da602eb Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Wed, 13 Nov 2013 15:37:43 +0000 Subject: [PATCH] remove private flag --- src/namestore/gnunet-service-namestore.c | 2 ++ src/namestore/test_namestore_api_lookup_nick.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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, nick = get_nick_record (zone_key); if ((NULL != nick) && (0 != strcmp(name, GNUNET_GNS_MASTERZONE_STR))) { + nick->flags = (nick->flags | GNUNET_GNSRECORD_RF_PRIVATE) ^ GNUNET_GNSRECORD_RF_PRIVATE; merge_records (rd_count,rd, 1, nick, &res_count, &res); GNUNET_free (nick); } @@ -724,6 +725,7 @@ lookup_it (void *cls, const struct GNUNET_CRYPTO_EcdsaPrivateKey *private_key, /* Merge */ rd_res = NULL; rdc_res = 0; + rlc->nick->flags = (rlc->nick->flags | GNUNET_GNSRECORD_RF_PRIVATE) ^ GNUNET_GNSRECORD_RF_PRIVATE; merge_records (rd_count, rd, 1, rlc->nick, &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, endbadly_task = GNUNET_SCHEDULER_add_now (&endbadly, NULL ); return; } - if (rd[c].flags != GNUNET_GNSRECORD_RF_PRIVATE) + if (0 != (rd[c].flags & GNUNET_GNSRECORD_RF_PRIVATE)) { GNUNET_break(0); GNUNET_SCHEDULER_cancel (endbadly_task); -- 2.25.1