From e021a0f7b5f818ae213198ba8bddac4b702292d4 Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Wed, 12 Feb 2020 22:06:19 +0100 Subject: [PATCH] fix duplicate NICK in record --- src/namestore/gnunet-service-namestore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c index 70e879ce9..619cabfc7 100644 --- a/src/namestore/gnunet-service-namestore.c +++ b/src/namestore/gnunet-service-namestore.c @@ -913,7 +913,7 @@ refresh_block (struct NamestoreClient *nc, nick = get_nick_record (zone_key); res_count = rd_count; res = (struct GNUNET_GNSRECORD_Data *) rd; /* fixme: a bit unclean... */ - if (NULL != nick) + if (NULL != nick && (0 != strcmp (name, GNUNET_GNS_EMPTY_LABEL_AT))) { nick->flags = (nick->flags | GNUNET_GNSRECORD_RF_PRIVATE) ^ GNUNET_GNSRECORD_RF_PRIVATE; -- 2.25.1