From: Christian Grothoff Date: Fri, 15 Jul 2011 11:33:46 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~17834 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=50933946df11f262a622c418fd6b0dbbee1d6e2d;p=oweals%2Fgnunet.git fix --- diff --git a/src/core/test_core_api_preferences.c b/src/core/test_core_api_preferences.c index c725543b0..b74e969c1 100644 --- a/src/core/test_core_api_preferences.c +++ b/src/core/test_core_api_preferences.c @@ -430,9 +430,9 @@ process_hello (void *cls, if ((p == &p2) && (p1.th != NULL)) GNUNET_TRANSPORT_offer_hello (p1.th, message, NULL, NULL); - if ((p == &p1) && (p2.hello != NULL)) + if ((p == &p1) && (p2.hello != NULL) && (p1.th != NULL)) GNUNET_TRANSPORT_offer_hello (p1.th, p2.hello, NULL, NULL); - if ((p == &p2) && (p1.hello != NULL)) + if ((p == &p2) && (p1.hello != NULL) && (p2.th != NULL)) GNUNET_TRANSPORT_offer_hello (p2.th, p1.hello, NULL, NULL); }