summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-03-17 23:24:19 +0100
committerMartin Schanzenbach <schanzen@gnunet.org>2022-03-17 23:24:19 +0100
commitc37f01bc90dcd5435f04e196767eb34ef57e730b (patch)
tree457f29cf8e6784e062a52dd2ff2a802e922ca31a
parentea4a5dd6ca3d62f852b5c2de94071b7fc8f0544c (diff)
GNS: Fix BOX service port handling in NBO
-rw-r--r--src/gns/gnunet-service-gns_resolver.c6
1 files changed, 5 insertions, 1 deletions
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))
{