Don't return zero-length packets when receiving multicast loopback packets.

This commit is contained in:
Guus Sliepen 2013-09-05 17:41:05 +02:00
parent 2faf3e91af
commit fe1d0043c8

View file

@ -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;