aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport_api.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-09-17 11:56:04 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-09-17 11:56:04 +0000
commit7376708ac7b99e80fb28e47b4acb305ef8069d3c (patch)
tree16b5fde5b35985465be062fcb6889f5f7ba365da /src/transport/transport_api.c
parent655b8bbaa8e17b53b02e33533d42719ff1254021 (diff)
downloadgnunet-7376708ac7b99e80fb28e47b4acb305ef8069d3c.tar.gz
gnunet-7376708ac7b99e80fb28e47b4acb305ef8069d3c.zip
- do not crash on shutdown
Diffstat (limited to 'src/transport/transport_api.c')
-rw-r--r--src/transport/transport_api.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c
index c905a1549..2d4890db9 100644
--- a/src/transport/transport_api.c
+++ b/src/transport/transport_api.c
@@ -988,7 +988,12 @@ GNUNET_TRANSPORT_try_connect (struct GNUNET_TRANSPORT_Handle *handle,
988 const struct GNUNET_PeerIdentity *target) 988 const struct GNUNET_PeerIdentity *target)
989{ 989{
990 struct GNUNET_PeerIdentity *pid; 990 struct GNUNET_PeerIdentity *pid;
991 GNUNET_assert (NULL != handle->client); 991 if (NULL == handle->client)
992 {
993 /* FIXME: handle->client can be NULL when transport api is reconnecting */
994 GNUNET_break (0);
995 return;
996 }
992 997
993 pid = GNUNET_malloc (sizeof (struct GNUNET_PeerIdentity)); 998 pid = GNUNET_malloc (sizeof (struct GNUNET_PeerIdentity));
994 *pid = *target; 999 *pid = *target;