summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/fastd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/fastd.c b/src/fastd.c
index c54b5b8..d082136 100644
--- a/src/fastd.c
+++ b/src/fastd.c
@@ -502,10 +502,8 @@ static inline bool handle_tun_tap(fastd_context_t *ctx, fastd_buffer_t buffer) {
fastd_peer_t *peer = fastd_peer_find_by_eth_addr(ctx, dest_addr);
- if (!peer || !fastd_peer_is_established(peer)) {
- fastd_buffer_free(buffer);
- return true;
- }
+ if (!peer || !fastd_peer_is_established(peer))
+ return false;
ctx->conf->protocol->send(ctx, peer, buffer);
return true;