diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-20 15:26:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-20 15:26:03 +0000 |
commit | d544e81283a24082e6423c8f4377939f6fefa780 (patch) | |
tree | ab8aaf264cdd6d27853ff15a2f7542c801acf721 /src/gns/gnunet-service-gns_resolver.c | |
parent | a0a09022f0d0df917465b8e71753a69f066058d3 (diff) | |
download | gnunet-d544e81283a24082e6423c8f4377939f6fefa780.tar.gz gnunet-d544e81283a24082e6423c8f4377939f6fefa780.zip |
-use the same hash function to map service name to hash, not once strlen and then strlen+1
Diffstat (limited to 'src/gns/gnunet-service-gns_resolver.c')
-rw-r--r-- | src/gns/gnunet-service-gns_resolver.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c index 14e714a85..f046702e3 100644 --- a/src/gns/gnunet-service-gns_resolver.c +++ b/src/gns/gnunet-service-gns_resolver.c | |||
@@ -41,6 +41,7 @@ | |||
41 | #include "gnunet_resolver_service.h" | 41 | #include "gnunet_resolver_service.h" |
42 | #include "gnunet_revocation_service.h" | 42 | #include "gnunet_revocation_service.h" |
43 | #include "gnunet_dnsparser_lib.h" | 43 | #include "gnunet_dnsparser_lib.h" |
44 | #include "gnunet_tun_lib.h" | ||
44 | #include "gnunet_gns_service.h" | 45 | #include "gnunet_gns_service.h" |
45 | #include "gns.h" | 46 | #include "gns.h" |
46 | #include "gnunet-service-gns_resolver.h" | 47 | #include "gnunet-service-gns_resolver.h" |
@@ -1413,9 +1414,8 @@ handle_gns_resolution_result (void *cls, | |||
1413 | GNS_resolver_lookup_cancel (rh); | 1414 | GNS_resolver_lookup_cancel (rh); |
1414 | return; | 1415 | return; |
1415 | } | 1416 | } |
1416 | GNUNET_CRYPTO_hash (vname, | 1417 | GNUNET_TUN_service_name_to_hash (vname, |
1417 | strlen (vname), // FIXME: +1? | 1418 | &vhash); |
1418 | &vhash); | ||
1419 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1419 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1420 | "Attempting VPN allocation for %s-%s (AF: %d, proto %d)\n", | 1420 | "Attempting VPN allocation for %s-%s (AF: %d, proto %d)\n", |
1421 | GNUNET_i2s (&vpn->peer), | 1421 | GNUNET_i2s (&vpn->peer), |