diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/util/test_resolver_api.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/util/test_resolver_api.c b/src/util/test_resolver_api.c index c577222e1..8b3f9c4bf 100644 --- a/src/util/test_resolver_api.c +++ b/src/util/test_resolver_api.c | |||
@@ -218,6 +218,7 @@ run(void *cls, struct GNUNET_SCHEDULER_Handle *sched, char * const *args, | |||
218 | struct GNUNET_TIME_Relative timeout = GNUNET_TIME_relative_multiply( | 218 | struct GNUNET_TIME_Relative timeout = GNUNET_TIME_relative_multiply( |
219 | GNUNET_TIME_UNIT_MILLISECONDS, 2500); | 219 | GNUNET_TIME_UNIT_MILLISECONDS, 2500); |
220 | int count_ips = 0; | 220 | int count_ips = 0; |
221 | char * own_hostname; | ||
221 | 222 | ||
222 | memset(&sa, 0, sizeof(sa)); | 223 | memset(&sa, 0, sizeof(sa)); |
223 | sa.sin_family = AF_INET; | 224 | sa.sin_family = AF_INET; |
@@ -234,8 +235,10 @@ run(void *cls, struct GNUNET_SCHEDULER_Handle *sched, char * const *args, | |||
234 | /* | 235 | /* |
235 | * Looking up our own hostname | 236 | * Looking up our own hostname |
236 | */ | 237 | */ |
237 | GNUNET_RESOLVER_local_hostname_get(sched, cfg, &check_local_hostname, cls); | 238 | own_hostname = GNUNET_malloc(GNUNET_OS_get_hostname_max_length() + 1); |
238 | 239 | own_hostname = GNUNET_RESOLVER_local_hostname_get(); | |
240 | check_local_hostname( NULL, own_hostname); | ||
241 | GNUNET_free (own_hostname); | ||
239 | 242 | ||
240 | /* | 243 | /* |
241 | * Testing non-local DNS resolution | 244 | * Testing non-local DNS resolution |