aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cadet/gnunet-service-cadet-new_tunnels.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cadet/gnunet-service-cadet-new_tunnels.c b/src/cadet/gnunet-service-cadet-new_tunnels.c
index 9d87f9e03..bf05fae6b 100644
--- a/src/cadet/gnunet-service-cadet-new_tunnels.c
+++ b/src/cadet/gnunet-service-cadet-new_tunnels.c
@@ -1319,7 +1319,8 @@ send_kx (struct CadetTunnel *t,
1319 struct GNUNET_CADET_TunnelKeyExchangeMessage *msg; 1319 struct GNUNET_CADET_TunnelKeyExchangeMessage *msg;
1320 enum GNUNET_CADET_KX_Flags flags; 1320 enum GNUNET_CADET_KX_Flags flags;
1321 1321
1322 if (NULL == ct) 1322 if ( (NULL == ct) ||
1323 (GNUNET_NO == ct->is_ready) )
1323 ct = get_ready_connection (t); 1324 ct = get_ready_connection (t);
1324 if (NULL == ct) 1325 if (NULL == ct)
1325 { 1326 {
@@ -1829,7 +1830,7 @@ GCT_handle_kx_auth (struct CadetTConnection *ct,
1829 1, 1830 1,
1830 GNUNET_NO); 1831 GNUNET_NO);
1831 send_kx (t, 1832 send_kx (t,
1832 NULL, 1833 ct,
1833 &t->ax); 1834 &t->ax);
1834 return; 1835 return;
1835 } 1836 }