diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-24 14:16:27 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-24 14:16:27 +0100 |
commit | d9998446e75bdeb535dc78a58dbc8b7f5a962dd3 (patch) | |
tree | 6ae8d893ef0c7706bc294a7e49bbb709d3791f23 /src/cadet | |
parent | 27d00c1ba73232c8130fdf135a29d0e2551a0023 (diff) | |
download | gnunet-d9998446e75bdeb535dc78a58dbc8b7f5a962dd3.tar.gz gnunet-d9998446e75bdeb535dc78a58dbc8b7f5a962dd3.zip |
not always ready when send_kx is called
Diffstat (limited to 'src/cadet')
-rw-r--r-- | src/cadet/gnunet-service-cadet-new_tunnels.c | 5 |
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 | } |