resolve nick if specifically requested
authorSchanzenbach, Martin <mschanzenbach@posteo.de>
Wed, 12 Feb 2020 22:09:03 +0000 (23:09 +0100)
committerSchanzenbach, Martin <mschanzenbach@posteo.de>
Wed, 12 Feb 2020 22:09:03 +0000 (23:09 +0100)
src/gns/gnunet-service-gns_resolver.c

index 735742283587d14133e47f3772a57e497e9d53a9..b3dd5470b9131a6c10b7de647b05acbd468c1ffb 100644 (file)
@@ -2244,7 +2244,13 @@ handle_gns_resolution_result (void *cls,
         break;
 
       case GNUNET_GNSRECORD_TYPE_NICK:
-        /* ignore */
+        /* ignore unless specifically requested */
+        if (GNUNET_GNSRECORD_TYPE_NICK == rh->record_type)
+        {
+          rd_new[rd_off].data = rd[i].data;
+          rd_new[rd_off].data_size = rd[i].data_size;
+          rd_off++;
+        }
         break;
 
       case GNUNET_GNSRECORD_TYPE_PKEY: