aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-01-30 12:28:39 +0000
committerBart Polot <bart@net.in.tum.de>2014-01-30 12:28:39 +0000
commit3c9e3e1e5f936940c3e8112c6c4aa4bd8ee52c59 (patch)
tree17c4abb8777f94414991320e2f7364f9cc3f72d8 /src
parent0d83dd0910566a4b1f95227cd62a42b1521c3bc6 (diff)
downloadgnunet-3c9e3e1e5f936940c3e8112c6c4aa4bd8ee52c59.tar.gz
gnunet-3c9e3e1e5f936940c3e8112c6c4aa4bd8ee52c59.zip
- fix SEGFAULT on ctrl+c in testcase
Diffstat (limited to 'src')
-rw-r--r--src/mesh/test_mesh_single.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesh/test_mesh_single.c b/src/mesh/test_mesh_single.c
index b40efa92b..6fc22362c 100644
--- a/src/mesh/test_mesh_single.c
+++ b/src/mesh/test_mesh_single.c
@@ -255,6 +255,9 @@ do_connect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
255 struct GNUNET_PeerIdentity id; 255 struct GNUNET_PeerIdentity id;
256 size_t size = sizeof (struct GNUNET_MessageHeader) + DATA_SIZE; 256 size_t size = sizeof (struct GNUNET_MessageHeader) + DATA_SIZE;
257 257
258 if ((GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason) != 0)
259 return;
260
258 GNUNET_TESTING_peer_get_identity (me, &id); 261 GNUNET_TESTING_peer_get_identity (me, &id);
259 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "CONNECT BY PORT\n"); 262 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "CONNECT BY PORT\n");
260 ch1 = GNUNET_MESH_channel_create (mesh, NULL, &id, 1, 263 ch1 = GNUNET_MESH_channel_create (mesh, NULL, &id, 1,