summaryrefslogtreecommitdiff
path: root/src/gns/gnunet-service-gns_resolver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gns/gnunet-service-gns_resolver.c')
-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))
{