]> git.meshlink.io Git - meshlink/commitdiff
Don't return zero-length packets when receiving multicast loopback packets.
authorGuus Sliepen <guus@tinc-vpn.org>
Thu, 5 Sep 2013 15:41:05 +0000 (17:41 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Thu, 5 Sep 2013 15:41:05 +0000 (17:41 +0200)
src/multicast_device.c

index dbd832bf63419d82da7f39fcee842aeb338bb7a2..600b77cc68e679614e16f6af4d9b61f172cfd58a 100644 (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;