diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-06-28 00:47:17 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-06-28 00:47:17 +0000 |
commit | 146d71432ed366ccd3e576f4b3e261ace67cf757 (patch) | |
tree | 23d1bc94cfabd932a860c1b7a465a383dc96101b /src/gns/test_gns_cname_lookup.c | |
parent | e5b1e32c9b441c00fbd7aed2a060583388bdd441 (diff) | |
download | gnunet-146d71432ed366ccd3e576f4b3e261ace67cf757.tar.gz gnunet-146d71432ed366ccd3e576f4b3e261ace67cf757.zip |
-big commit, make new ns and valgrind happy
Diffstat (limited to 'src/gns/test_gns_cname_lookup.c')
-rw-r--r-- | src/gns/test_gns_cname_lookup.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gns/test_gns_cname_lookup.c b/src/gns/test_gns_cname_lookup.c index a9eae329c..f1045fda7 100644 --- a/src/gns/test_gns_cname_lookup.c +++ b/src/gns/test_gns_cname_lookup.c | |||
@@ -275,6 +275,12 @@ on_lookup_result_plus (void *cls, uint32_t rd_count, | |||
275 | } | 275 | } |
276 | 276 | ||
277 | 277 | ||
278 | static void | ||
279 | disco_ns (void* cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
280 | { | ||
281 | GNUNET_NAMESTORE_disconnect (namestore_handle); | ||
282 | } | ||
283 | |||
278 | /** | 284 | /** |
279 | * Function scheduled to be run on the successful start of services | 285 | * Function scheduled to be run on the successful start of services |
280 | * tries to look up the dns record for TEST_DOMAIN | 286 | * tries to look up the dns record for TEST_DOMAIN |
@@ -283,8 +289,7 @@ static void | |||
283 | commence_testing (void *cls, int32_t success, const char *emsg) | 289 | commence_testing (void *cls, int32_t success, const char *emsg) |
284 | { | 290 | { |
285 | 291 | ||
286 | 292 | GNUNET_SCHEDULER_add_now (disco_ns, NULL); | |
287 | GNUNET_NAMESTORE_disconnect (namestore_handle); | ||
288 | 293 | ||
289 | gns_handle = GNUNET_GNS_connect(cfg); | 294 | gns_handle = GNUNET_GNS_connect(cfg); |
290 | 295 | ||