diff options
author | Heikki Lindholm <holin@iki.fi> | 2010-04-09 20:24:34 +0000 |
---|---|---|
committer | Heikki Lindholm <holin@iki.fi> | 2010-04-09 20:24:34 +0000 |
commit | 8f0658b93c8fe2b7d243a6cd38cd569a9f24101f (patch) | |
tree | 2d65e8e26963de2ead6b26e2d511d43a72797dc8 /src/util/resolver_api.c | |
parent | e330680665c97ce4ec3e2ccca1b24981830ab5da (diff) | |
download | gnunet-8f0658b93c8fe2b7d243a6cd38cd569a9f24101f.tar.gz gnunet-8f0658b93c8fe2b7d243a6cd38cd569a9f24101f.zip |
rehash since gethostname is used in resolver as well
Diffstat (limited to 'src/util/resolver_api.c')
-rw-r--r-- | src/util/resolver_api.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/resolver_api.c b/src/util/resolver_api.c index ecd3789f4..a35f680d3 100644 --- a/src/util/resolver_api.c +++ b/src/util/resolver_api.c | |||
@@ -25,6 +25,7 @@ | |||
25 | */ | 25 | */ |
26 | #include "platform.h" | 26 | #include "platform.h" |
27 | #include "gnunet_getopt_lib.h" | 27 | #include "gnunet_getopt_lib.h" |
28 | #include "gnunet_os_lib.h" | ||
28 | #include "gnunet_client_lib.h" | 29 | #include "gnunet_client_lib.h" |
29 | #include "gnunet_protocols.h" | 30 | #include "gnunet_protocols.h" |
30 | #include "gnunet_resolver_service.h" | 31 | #include "gnunet_resolver_service.h" |
@@ -686,7 +687,7 @@ GNUNET_RESOLVER_hostname_resolve (struct GNUNET_SCHEDULER_Handle *sched, | |||
686 | GNUNET_RESOLVER_AddressCallback callback, | 687 | GNUNET_RESOLVER_AddressCallback callback, |
687 | void *cls) | 688 | void *cls) |
688 | { | 689 | { |
689 | char hostname[MAX_HOSTNAME]; | 690 | char hostname[GNUNET_OS_get_hostname_max_length() + 1]; |
690 | 691 | ||
691 | check_config (cfg); | 692 | check_config (cfg); |
692 | if (0 != gethostname (hostname, sizeof (hostname) - 1)) | 693 | if (0 != gethostname (hostname, sizeof (hostname) - 1)) |