diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-03-17 23:24:19 +0100 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-03-17 23:24:19 +0100 |
commit | c37f01bc90dcd5435f04e196767eb34ef57e730b (patch) | |
tree | 457f29cf8e6784e062a52dd2ff2a802e922ca31a /src/gns | |
parent | ea4a5dd6ca3d62f852b5c2de94071b7fc8f0544c (diff) | |
download | gnunet-c37f01bc90dcd5435f04e196767eb34ef57e730b.tar.gz gnunet-c37f01bc90dcd5435f04e196767eb34ef57e730b.zip |
GNS: Fix BOX service port handling in NBO
Diffstat (limited to 'src/gns')
-rw-r--r-- | src/gns/gnunet-service-gns_resolver.c | 6 |
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) | |||
683 | } | 683 | } |
684 | else | 684 | else |
685 | { | 685 | { |
686 | rh->service = se->s_port; | 686 | rh->service = ntohs (se->s_port); |
687 | } | 687 | } |
688 | rh->protocol = pe->p_proto; | 688 | rh->protocol = pe->p_proto; |
689 | GNUNET_free (proto_name); | 689 | GNUNET_free (proto_name); |
@@ -2237,6 +2237,10 @@ handle_gns_resolution_result (void *cls, | |||
2237 | const struct GNUNET_GNSRECORD_BoxRecord *box; | 2237 | const struct GNUNET_GNSRECORD_BoxRecord *box; |
2238 | 2238 | ||
2239 | box = rd[i].data; | 2239 | box = rd[i].data; |
2240 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
2241 | "Got BOX record, checking if parameters match... %u/%u vs %u/%u\n", | ||
2242 | ntohs (box->protocol), ntohs (box->service), | ||
2243 | rh->protocol, rh->service); | ||
2240 | if ((ntohs (box->protocol) == rh->protocol) && | 2244 | if ((ntohs (box->protocol) == rh->protocol) && |
2241 | (ntohs (box->service) == rh->service)) | 2245 | (ntohs (box->service) == rh->service)) |
2242 | { | 2246 | { |