summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-04-20 20:03:47 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-04-20 20:03:47 +0200
commitdda980968319490074e5315d48f2ba51fc8b9e29 (patch)
treed5f14f6ff76be86102ec7bf616a21a08d3a7b969 /src
parent289a3ee320781b7811851d476e81f49b5d08d28b (diff)
downloadfastd-dda980968319490074e5315d48f2ba51fc8b9e29.tar
fastd-dda980968319490074e5315d48f2ba51fc8b9e29.zip
ec25519-fhmqvc: drop is_established test in protocol_handle_recv()
handle_socket() now tests it before calling handle_recv
Diffstat (limited to 'src')
-rw-r--r--src/protocol_ec25519_fhmqvc.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/protocol_ec25519_fhmqvc.c b/src/protocol_ec25519_fhmqvc.c
index 662f3b8..1f58ae3 100644
--- a/src/protocol_ec25519_fhmqvc.c
+++ b/src/protocol_ec25519_fhmqvc.c
@@ -781,13 +781,6 @@ static void protocol_handshake_handle(fastd_context_t *ctx, fastd_socket_t *sock
}
static void protocol_handle_recv(fastd_context_t *ctx, fastd_peer_t *peer, fastd_buffer_t buffer) {
- if (!fastd_peer_is_established(peer)) {
- pr_debug(ctx, "received unexpected packet from %P, scheduling handshake", peer);
- fastd_task_schedule_handshake(ctx, peer, 0);
-
- goto fail;
- }
-
if (!peer->protocol_state || !is_session_valid(ctx, &peer->protocol_state->session))
goto fail;