X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fmulticast_device.c;h=600b77cc68e679614e16f6af4d9b61f172cfd58a;hb=3e924045ccaab1441b77ff43a2d7eb759b313f7b;hp=e58d293e7442020d723b918538a15a131d7d9a8a;hpb=3847b78ba5900fe4311e9ef62474e32e1a6750e5;p=tinc diff --git a/src/multicast_device.c b/src/multicast_device.c index e58d293e..600b77cc 100644 --- a/src/multicast_device.c +++ b/src/multicast_device.c @@ -1,7 +1,7 @@ /* device.c -- multicast socket Copyright (C) 2002-2005 Ivo Timmermans, - 2002-2012 Guus Sliepen + 2002-2013 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -136,8 +136,6 @@ static bool setup_device(void) { goto error; } - freeaddrinfo(ai); - logger(DEBUG_ALWAYS, LOG_INFO, "%s is a %s", device, device_info); return true; @@ -173,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;