summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-05-19 18:27:09 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-05-19 18:27:09 +0200
commit933609fc6e464e1259928ff587464841c4e9b953 (patch)
treecf042099430e406af8caebfa19c49a99aa028edf
parentac4d8d1aea37c5b75caa01ac2dbbf5dd19d9b0be (diff)
downloadfastd-933609fc6e464e1259928ff587464841c4e9b953.tar
fastd-933609fc6e464e1259928ff587464841c4e9b953.zip
Add a missing return in handle_socket_receive_known()
-rw-r--r--src/fastd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fastd.c b/src/fastd.c
index c923efa..66e8718 100644
--- a/src/fastd.c
+++ b/src/fastd.c
@@ -936,6 +936,7 @@ static inline void handle_socket_receive_known(fastd_context_t *ctx, fastd_socke
if (!fastd_peer_is_established(peer) || !fastd_peer_address_equal(&peer->local_address, local_addr)) {
fastd_buffer_free(buffer);
ctx->conf->protocol->handshake_init(ctx, sock, local_addr, remote_addr, NULL);
+ return;
}
ctx->conf->protocol->handle_recv(ctx, peer, buffer);