diff options
author | Bart Polot <bart@net.in.tum.de> | 2015-07-31 06:58:52 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2015-07-31 06:58:52 +0000 |
commit | 5d6f8c01a8ec0438d072f9c38b4d9b1ad554a64c (patch) | |
tree | 34194057a09447c90610f5d7e79f40d8f98997e2 /src | |
parent | 67c4ab7d1c17f2be8e916568889af45bd51005be (diff) | |
download | gnunet-5d6f8c01a8ec0438d072f9c38b4d9b1ad554a64c.tar.gz gnunet-5d6f8c01a8ec0438d072f9c38b4d9b1ad554a64c.zip |
- ignore AX KX when we already know the peer's key, not when the state is KEY_OK. This allows the peer to issue a re-key.
Diffstat (limited to 'src')
-rw-r--r-- | src/cadet/gnunet-service-cadet_tunnel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index 632ce799c..dc86f7a0f 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c | |||
@@ -2908,7 +2908,7 @@ handle_kx_ax (struct CadetTunnel *t, const struct GNUNET_CADET_AX_KX *msg) | |||
2908 | (GNUNET_CADET_AX_KX_FLAG_FORCE_REPLY & ntohl (msg->flags))) | 2908 | (GNUNET_CADET_AX_KX_FLAG_FORCE_REPLY & ntohl (msg->flags))) |
2909 | GCT_send_ax_kx (t, GNUNET_NO); | 2909 | GCT_send_ax_kx (t, GNUNET_NO); |
2910 | 2910 | ||
2911 | if (CADET_TUNNEL_KEY_OK == t->estate) | 2911 | if (0 == memcmp(&ax->DHRr, &msg->ratchet_key, sizeof(msg->ratchet_key))) |
2912 | return; | 2912 | return; |
2913 | 2913 | ||
2914 | LOG (GNUNET_ERROR_TYPE_INFO, " is Alice? %s\n", am_I_alice ? "YES" : "NO"); | 2914 | LOG (GNUNET_ERROR_TYPE_INFO, " is Alice? %s\n", am_I_alice ? "YES" : "NO"); |