aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2010-04-16 15:44:48 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2010-04-16 15:44:48 +0000
commit427b84ad7aa13658cb433ccc1ac362b24f1754c3 (patch)
treee0f61617a33e68c4ed8e41ce83d1f257f1b05c3d /src
parent3694f47d538e071f19b03dfca766ca06801a61e9 (diff)
downloadgnunet-427b84ad7aa13658cb433ccc1ac362b24f1754c3.tar.gz
gnunet-427b84ad7aa13658cb433ccc1ac362b24f1754c3.zip
Diffstat (limited to 'src')
-rw-r--r--src/util/test_resolver_api.c7
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