From 50933946df11f262a622c418fd6b0dbbee1d6e2d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 15 Jul 2011 11:33:46 +0000 Subject: [PATCH] fix --- src/core/test_core_api_preferences.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.25.1