From fe1d0043c81b26f337bdce63dd290d882b01cf21 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Thu, 5 Sep 2013 17:41:05 +0200 Subject: [PATCH] Don't return zero-length packets when receiving multicast loopback packets. --- src/multicast_device.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/multicast_device.c b/src/multicast_device.c index dbd832bf..600b77cc 100644 --- a/src/multicast_device.c +++ b/src/multicast_device.c @@ -171,8 +171,7 @@ static bool read_packet(vpn_packet_t *packet) { if(!memcmp(&ignore_src, packet->data + 6, sizeof ignore_src)) { logger(DEBUG_SCARY_THINGS, LOG_DEBUG, "Ignoring loopback packet of %d bytes from %s", lenin, device_info); - packet->len = 0; - return true; + return false; } packet->len = lenin; -- 2.39.5