diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-04-20 20:03:47 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-04-20 20:03:47 +0200 |
commit | dda980968319490074e5315d48f2ba51fc8b9e29 (patch) | |
tree | d5f14f6ff76be86102ec7bf616a21a08d3a7b969 | |
parent | 289a3ee320781b7811851d476e81f49b5d08d28b (diff) | |
download | fastd-dda980968319490074e5315d48f2ba51fc8b9e29.tar fastd-dda980968319490074e5315d48f2ba51fc8b9e29.zip |
ec25519-fhmqvc: drop is_established test in protocol_handle_recv()
handle_socket() now tests it before calling handle_recv
-rw-r--r-- | src/protocol_ec25519_fhmqvc.c | 7 |
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; |