From 1b29841f56357fbb35cf377f1fb951ce74a7ba2a Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 23 Aug 2013 07:51:49 +0000 Subject: how did this test ever work without assigning core handles? --- src/core/test_core_api_reliability.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/core') diff --git a/src/core/test_core_api_reliability.c b/src/core/test_core_api_reliability.c index e0db5eaed..c1945d01b 100644 --- a/src/core/test_core_api_reliability.c +++ b/src/core/test_core_api_reliability.c @@ -372,9 +372,9 @@ init_notify (void *cls, GNUNET_assert (ok == 2); OKPP; /* connect p2 */ - GNUNET_CORE_connect (p2.cfg, &p2, &init_notify, &connect_notify, + GNUNET_assert (NULL != (p2.ch = GNUNET_CORE_connect (p2.cfg, &p2, &init_notify, &connect_notify, &disconnect_notify, &inbound_notify, GNUNET_YES, - &outbound_notify, GNUNET_YES, handlers); + &outbound_notify, GNUNET_YES, handlers))); } else { @@ -439,9 +439,10 @@ run (void *cls, char *const *args, const char *cfgfile, setup_peer (&p2, "test_core_api_peer2.conf"); err_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, &terminate_task_error, NULL); - GNUNET_CORE_connect (p1.cfg, &p1, &init_notify, &connect_notify, + + GNUNET_assert (NULL != (p1.ch = GNUNET_CORE_connect (p1.cfg, &p1, &init_notify, &connect_notify, &disconnect_notify, &inbound_notify, GNUNET_YES, - &outbound_notify, GNUNET_YES, handlers); + &outbound_notify, GNUNET_YES, handlers))); } -- cgit v1.2.3