From c37f01bc90dcd5435f04e196767eb34ef57e730b Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Thu, 17 Mar 2022 23:24:19 +0100 Subject: GNS: Fix BOX service port handling in NBO --- src/gns/gnunet-service-gns_resolver.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c index 72b228f33..bb3dc215a 100644 --- a/src/gns/gnunet-service-gns_resolver.c +++ b/src/gns/gnunet-service-gns_resolver.c @@ -683,7 +683,7 @@ resolver_lookup_get_next_label (struct GNS_ResolverHandle *rh) } else { - rh->service = se->s_port; + rh->service = ntohs (se->s_port); } rh->protocol = pe->p_proto; GNUNET_free (proto_name); @@ -2237,6 +2237,10 @@ handle_gns_resolution_result (void *cls, const struct GNUNET_GNSRECORD_BoxRecord *box; box = rd[i].data; + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "Got BOX record, checking if parameters match... %u/%u vs %u/%u\n", + ntohs (box->protocol), ntohs (box->service), + rh->protocol, rh->service); if ((ntohs (box->protocol) == rh->protocol) && (ntohs (box->service) == rh->service)) { -- cgit v1.2.3