summaryrefslogtreecommitdiffstats
path: root/src/protocol_null.c
diff options
context:
space:
mode:
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);
}