From 2d7472633ac356f1bc8f8122a1cc3b3226a95697 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 1 Apr 2012 04:00:33 +0200 Subject: Don't stop repeating handshakes until valid data using the new key is received --- src/protocol_null.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/protocol_null.c') 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); } -- cgit v1.2.3