summaryrefslogtreecommitdiff
path: root/src/transport/transport-testing-send.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-07-23 22:32:35 +0000
committerChristian Grothoff <christian@grothoff.org>2016-07-23 22:32:35 +0000
commit658c3cf583b0c09e55c41a78a9ec8dbe28cb515e (patch)
tree236759ed9a5b6a5e3493667c34f384279bc12bbe /src/transport/transport-testing-send.c
parent1d188d2b9437f8a7685d0d139da7a6b9fb1b7c9c (diff)
more refactoring of tests for new send API
Diffstat (limited to 'src/transport/transport-testing-send.c')
-rw-r--r--src/transport/transport-testing-send.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/transport/transport-testing-send.c b/src/transport/transport-testing-send.c
index 60fed23a6..cbf294bcf 100644
--- a/src/transport/transport-testing-send.c
+++ b/src/transport/transport-testing-send.c
@@ -96,6 +96,8 @@ find_cr (void *cls,
{
struct GNUNET_TRANSPORT_TESTING_ConnectRequest **cr = cls;
+ if (GNUNET_NO == cx->connected)
+ return;
*cr = cx;
}
@@ -144,8 +146,7 @@ GNUNET_TRANSPORT_TESTING_send (struct GNUNET_TRANSPORT_TESTING_PeerContext *send
sender,
&find_cr,
&cr);
- if ( (NULL == cr) ||
- (GNUNET_YES != cr->connected) )
+ if (NULL == cr)
{
GNUNET_break (0);
return GNUNET_NO;