From: Schanzenbach, Martin Date: Wed, 12 Feb 2020 21:06:19 +0000 (+0100) Subject: fix duplicate NICK in record X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e021a0f7b5f818ae213198ba8bddac4b702292d4;p=oweals%2Fgnunet.git fix duplicate NICK in record --- 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;