summaryrefslogtreecommitdiffstats
path: root/src/fastd.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-03-20 04:55:55 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-03-20 04:55:55 +0100
commit6c659ee5fafea64fef403bf0343bbeda45225560 (patch)
treee7d312484db72b3573bad8884e6b84787e9774af /src/fastd.c
parent91896aefeafa1228d28d31dbb29283bf9f50b710 (diff)
downloadfastd-6c659ee5fafea64fef403bf0343bbeda45225560.tar
fastd-6c659ee5fafea64fef403bf0343bbeda45225560.zip
Flood unicasts for unknown addresses
Diffstat (limited to 'src/fastd.c')
-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;