fix logic for nick
authorSchanzenbach, Martin <mschanzenbach@posteo.de>
Thu, 13 Feb 2020 06:59:22 +0000 (07:59 +0100)
committerSchanzenbach, Martin <mschanzenbach@posteo.de>
Thu, 13 Feb 2020 06:59:22 +0000 (07:59 +0100)
src/gns/gnunet-service-gns_resolver.c

index b3dd5470b9131a6c10b7de647b05acbd468c1ffb..f442e401819af161e2034a3c7bbfb6cb9d36fb4d 100644 (file)
@@ -2245,7 +2245,7 @@ handle_gns_resolution_result (void *cls,
 
       case GNUNET_GNSRECORD_TYPE_NICK:
         /* ignore unless specifically requested */
-        if (GNUNET_GNSRECORD_TYPE_NICK == rh->record_type)
+        if (0 == strcmp (GNUNET_GNS_EMPTY_LABEL_AT, rh->name))
         {
           rd_new[rd_off].data = rd[i].data;
           rd_new[rd_off].data_size = rd[i].data_size;