summaryrefslogtreecommitdiffstats
path: root/src/protocol_null.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-04-01 04:00:33 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-04-01 04:00:33 +0200
commit2d7472633ac356f1bc8f8122a1cc3b3226a95697 (patch)
treea70a6bc36aaf9948ee4d46cf26a792166608bc6b /src/protocol_null.c
parent6abadfbe0b3e10fff89579b20e8d3a47f5eafd4d (diff)
downloadfastd-2d7472633ac356f1bc8f8122a1cc3b3226a95697.tar
fastd-2d7472633ac356f1bc8f8122a1cc3b3226a95697.zip
Don't stop repeating handshakes until valid data using the new key is received
Diffstat (limited to 'src/protocol_null.c')
-rw-r--r--src/protocol_null.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/protocol_null.c b/src/protocol_null.c
index 8648c88..163d164 100644
--- a/src/protocol_null.c
+++ b/src/protocol_null.c
@@ -100,6 +100,9 @@ static void protocol_handshake_handle(fastd_context *ctx, fastd_peer *peer, cons
static void protocol_handle_recv(fastd_context *ctx, fastd_peer *peer, fastd_buffer buffer) {
if (fastd_peer_is_established(peer) && buffer.len) {
+ /* this could be optimized a bit */
+ fastd_peer_clean_handshakes(ctx, peer);
+
fastd_peer_seen(ctx, peer);
fastd_task_put_handle_recv(ctx, peer, buffer);
}