aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2015-07-31 06:58:52 +0000
committerBart Polot <bart@net.in.tum.de>2015-07-31 06:58:52 +0000
commit5d6f8c01a8ec0438d072f9c38b4d9b1ad554a64c (patch)
tree34194057a09447c90610f5d7e79f40d8f98997e2 /src
parent67c4ab7d1c17f2be8e916568889af45bd51005be (diff)
downloadgnunet-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.c2
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");