From 206866779353de518a47712d5de6082cdcb3af2e Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Wed, 12 Feb 2020 23:09:03 +0100 Subject: [PATCH] resolve nick if specifically requested --- src/gns/gnunet-service-gns_resolver.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c index 735742283..b3dd5470b 100644 --- a/src/gns/gnunet-service-gns_resolver.c +++ b/src/gns/gnunet-service-gns_resolver.c @@ -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: -- 2.25.1