diff options
-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 | { |