diff options
Diffstat (limited to 'src/core/test_core_api_reliability.c')
-rw-r--r-- | src/core/test_core_api_reliability.c | 9 |
1 files changed, 5 insertions, 4 deletions
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, | |||
372 | GNUNET_assert (ok == 2); | 372 | GNUNET_assert (ok == 2); |
373 | OKPP; | 373 | OKPP; |
374 | /* connect p2 */ | 374 | /* connect p2 */ |
375 | GNUNET_CORE_connect (p2.cfg, &p2, &init_notify, &connect_notify, | 375 | GNUNET_assert (NULL != (p2.ch = GNUNET_CORE_connect (p2.cfg, &p2, &init_notify, &connect_notify, |
376 | &disconnect_notify, &inbound_notify, GNUNET_YES, | 376 | &disconnect_notify, &inbound_notify, GNUNET_YES, |
377 | &outbound_notify, GNUNET_YES, handlers); | 377 | &outbound_notify, GNUNET_YES, handlers))); |
378 | } | 378 | } |
379 | else | 379 | else |
380 | { | 380 | { |
@@ -439,9 +439,10 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
439 | setup_peer (&p2, "test_core_api_peer2.conf"); | 439 | setup_peer (&p2, "test_core_api_peer2.conf"); |
440 | err_task = | 440 | err_task = |
441 | GNUNET_SCHEDULER_add_delayed (TIMEOUT, &terminate_task_error, NULL); | 441 | GNUNET_SCHEDULER_add_delayed (TIMEOUT, &terminate_task_error, NULL); |
442 | GNUNET_CORE_connect (p1.cfg, &p1, &init_notify, &connect_notify, | 442 | |
443 | GNUNET_assert (NULL != (p1.ch = GNUNET_CORE_connect (p1.cfg, &p1, &init_notify, &connect_notify, | ||
443 | &disconnect_notify, &inbound_notify, GNUNET_YES, | 444 | &disconnect_notify, &inbound_notify, GNUNET_YES, |
444 | &outbound_notify, GNUNET_YES, handlers); | 445 | &outbound_notify, GNUNET_YES, handlers))); |
445 | } | 446 | } |
446 | 447 | ||
447 | 448 | ||